Go offline with the Player FM app!
Mikers and Shadow Path chat about PHP, NodeJS and GO
Manage episode 311484090 series 3130316
Lumen a php microframework by the creators of laravel:
$app->get('user/{id}', function($id) {
return User::findOrFail($id);
});
https://tutorialedge.net/golang/creating-simple-web-server-with-golang/
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
})
http.HandleFunc("/hi", func(w http.ResponseWriter, r *http.Request){
fmt.Fprintf(w, "Hi")
})
log.Fatal(http.ListenAndServe(":8081", nil))
}
15 episodes
Manage episode 311484090 series 3130316
Lumen a php microframework by the creators of laravel:
$app->get('user/{id}', function($id) {
return User::findOrFail($id);
});
https://tutorialedge.net/golang/creating-simple-web-server-with-golang/
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
})
http.HandleFunc("/hi", func(w http.ResponseWriter, r *http.Request){
fmt.Fprintf(w, "Hi")
})
log.Fatal(http.ListenAndServe(":8081", nil))
}
15 episodes
All episodes
×Welcome to Player FM!
Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.