Skip to content

Instantly share code, notes, and snippets.

@atotto
Created December 21, 2013 07:39
Show Gist options
  • Save atotto/8066534 to your computer and use it in GitHub Desktop.
Save atotto/8066534 to your computer and use it in GitHub Desktop.
// $ go tool vet *.go
package main
import (
"fmt"
)
func main() {
//fmt.Printf("hello %s", "世界")
fmt.Printf("hello %s")
}
type Person struct {
//Name string `json:"string"`
Name string `json:string`
}
//func (h *Person) MarshalJSON() ([]byte, error) {
func (h *Person) MarshalJSON() {
}
//func (h *Person) UnmarshalJSON([]byte) error {
func (h *Person) UnmarshalJSON() error {
return nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment