docs(pier,seaglass,sunrise,sunscreen,tide): compile README Go examples via src= (quick-261118-qsd)
This commit is contained in:
@@ -71,15 +71,7 @@ Update mode takes no other argument. It works the same from bash, zsh and fish,
|
||||
|
||||
Serving the script from a Go handler:
|
||||
|
||||
```go
|
||||
package acme
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"git.golem15.com/golem15/summercms/modules/sunrise"
|
||||
)
|
||||
|
||||
```go src=modules/sunrise/example_test.go#newScript
|
||||
func newScript(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||
w.Header().Set("X-Content-Type-Options", "nosniff")
|
||||
|
||||
Reference in New Issue
Block a user