Skip to content

Commit

Permalink
Example: use the new json annotation tags
Browse files Browse the repository at this point in the history
  • Loading branch information
madari committed Sep 14, 2011
1 parent 5da7787 commit 600bfb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import (
)

type Announcement struct {
Announcement string "announcement"
Announcement string `json:"announcement"`
}

type Buffer struct {
Buffer []interface{} "buffer"
Buffer []interface{} `json:"buffer"`
}

type Message struct {
Message []string "message"
Message []string `json:"message"`
}

// A very simple chat server
Expand Down

0 comments on commit 600bfb4

Please sign in to comment.