File tree Expand file tree Collapse file tree 1 file changed +49
-2
lines changed Expand file tree Collapse file tree 1 file changed +49
-2
lines changed Original file line number Diff line number Diff line change 44
55- A powerful go web framework for highly scalable and resource efficient web application
66
7- # Installation:
7+ ## Installation:
88```
99go get -u github.com/godzillaframework/godzilla
1010```
1111
12- # Examples:
12+ ## Features:
13+ - Fast
14+ - Lightweight
15+ - Secure
16+ - Easy Peasy :)
17+
18+ ## Examples:
19+
20+ - a simple api
21+
1322``` golang
1423package main
1524
@@ -26,4 +35,42 @@ func main() {
2635}
2736```
2837
38+ - params
39+ ``` golang
40+ package main
41+
42+ import " github.com/godzillaframework/godzilla"
43+
44+ func main () {
45+ gz := godzilla.New ()
46+
47+ gz.Get (" /users/:user" , func (ctx godzilla.Context ) {
48+ ctx.SendString (ctx.Param (" user" ))
49+ })
50+
51+ gz.Start (" :8080" )
52+ }
53+ ```
54+
55+ - static files
56+ ``` golang
57+ package main
58+
59+ import " github.com/godzillaframework/godzilla"
60+
61+ func main () {
62+ gz := godzilla.New ()
63+
64+ gz.Static (" /imgs" , " ./images" )
65+
66+ /* go to localhost:8080/imgs/image.png */
67+
68+ gz.Start (" :8080" )
69+ }
70+ ```
71+
72+ - middleware
73+ ```
74+ ```
75+
2976- for more tutorials visit the [ docs] ( https://github.com/godzillaframework/godzilla/blob/master/docs/learngodzilla.md )
You can’t perform that action at this time.
0 commit comments