Skip to content

Commit

Permalink
Move documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eko committed Mar 10, 2017
1 parent 4c57f54 commit a69bfe1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -12,5 +12,6 @@ go:

install:
- go get github.com/flosch/pongo2
- go get golang.org/x/net/http2

script: go test -v
23 changes: 12 additions & 11 deletions README.md
Expand Up @@ -14,6 +14,7 @@ Installation
```bash
$ git clone git@github.com:eko/gofast.git
$ go get -u github.com/flosch/pongo2
$ go get -u golang.org/x/net/http2
```

Running an application
Expand Down Expand Up @@ -77,6 +78,17 @@ func main() {
}
```

HTTP/2 Support
--------------

You can use HTTP/2 support by using the following line instead of app.Listen():

```
app.ListenHttp2("./fullchain.pem", "./privkey.pem")
```

Of course, you will have to precize SSL certificate and private key.

Templating
----------

Expand Down Expand Up @@ -155,14 +167,3 @@ app.Get("retrieve-data", "/retrieve$", func(context gofast.Context) {
fmt.Fprint(response, "{result: 200}")
})
```

HTTP/2 Support
--------------

You can use HTTP/2 support by using the following line instead of app.Listen():

```
app.ListenHttp2("./fullchain.pem", "./privkey.pem")
```

Of course, you will have to precize SSL certificate and private key.

0 comments on commit a69bfe1

Please sign in to comment.