Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func jsonify() string {
- type Product struct {
- id int
- name string
- time int64
- }
- d = []Product
- d[0] := Product{0,"aaaaa", 1294706395881547000 }
- d[1] := Product{1,"bbbbb", 1294706395881547000 }
- d[2] := Product{2,"ccccc", 1294706395881547000 }
- j, err := json.Marshal(d)
- return j
- }
Add Comment
Please, Sign In to add comment