Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Example: use the new json annotation tags

  • Loading branch information...
commit 600bfb4660a36f6629f03b76e31fe722b51cd339 1 parent 5da7787
@madari authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 example/example.go
View
6 example/example.go
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.