github.com/roblesoft/oak@v0.0.0-20230306162712-e6c5c487469e/readme.md (about) 1 # Oak 2 3 Oak is a http web framework without third pary dependencies 4 5 # Example 6 7 ```go 8 package main 9 10 import ( 11 "github.com/roblesoft/oak" 12 ) 13 14 type Json struct { 15 Body string 16 } 17 18 func main() { 19 app := oak.New() 20 21 app.GET("/hello_world", func(ctx *oak.Ctx) { 22 ctx.JSON(&Json{Body: "Hello world"}) 23 }) 24 25 app.Run() 26 } 27 ```