Skip to content

Commit f9bfb04

Browse files
committed
README
1 parent e6dd899 commit f9bfb04

File tree

1 file changed

+49
-2
lines changed

1 file changed

+49
-2
lines changed

README.md

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,21 @@
44

55
- A powerful go web framework for highly scalable and resource efficient web application
66

7-
# Installation:
7+
## Installation:
88
```
99
go 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
1423
package 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)

0 commit comments

Comments
 (0)