Skip to content

Commit a342c2a

Browse files
committed
Don't export document
1 parent 7710a46 commit a342c2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/server/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
log "github.com/sirupsen/logrus"
1111
)
1212

13-
type Document struct {
13+
type document struct {
1414
Title string `json:"title"`
1515
Content string `json:"content"`
1616
}
1717

18-
var documents = []Document{
18+
var documents = []document{
1919
{Title: "My diary", Content: "Today I had fun with graphqlws"},
2020
{Title: "Todo", Content: "Add a complete example"},
2121
}

0 commit comments

Comments
 (0)