webdev

Mikers and Shadow Path chat about PHP, NodeJS and GO


Listen Later

Lumen a php microframework by the creators of laravel:

https://lumen.laravel.com/


$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))

}

...more
View all episodesView all episodes
Download on the App Store

webdevBy webdev