Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix panic when reflecting on maps (#181)
``` package main //go:generate msgp import ( "bytes" "fmt" "os" "github.com/tinylib/msgp/msgp" ) type Feedback map[string]interface{} func main() { deepMap := make(map[string]map[string]string) feedback := Feedback{"general": deepMap} bb := new(bytes.Buffer) if err := msgp.Encode(bb, feedback); err != nil { fmt.Fprintf(os.Stderr, "%s\n", err) os.Exit(1) } fmt.Printf("%#v\n", bb.Bytes()) } // 1. Type `go generate main.go`. // 2. Type `go run main.go main_gen.go`. ```
- Loading branch information