Skip to content

Instantly share code, notes, and snippets.

@danprince
Created February 12, 2016 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danprince/b5672db782a4f14451e2 to your computer and use it in GitHub Desktop.
Save danprince/b5672db782a4f14451e2 to your computer and use it in GitHub Desktop.
panic: reflect: NumField of non-struct type
goroutine 16 [running]:
runtime.panic(0x501280, 0xc2080002b0)
/usr/lib/go/src/pkg/runtime/panic.c:279 +0xf5
reflect.(*rtype).NumField(0x4ffc00, 0xc20803a040)
/usr/lib/go/src/pkg/reflect/type.go:658 +0x79
github.com/ericaro/frontmatter.findField(0x4f5b80, 0xc20803a040, 0x550db0, 0x2, 0x5505b0, 0x7, 0x0)
/home/dan/dev/go/src/github.com/ericaro/frontmatter/writestring.go:67 +0x18f
github.com/ericaro/frontmatter.WriteString(0x4f5b80, 0xc20803a040, 0x550db0, 0x2, 0x5505b0, 0x7, 0xc208078031, 0x3b95, 0x0, 0x0)
/home/dan/dev/go/src/github.com/ericaro/frontmatter/writestring.go:29 +0xb9
github.com/ericaro/frontmatter.Unmarshal(0xc208064000, 0x3bc6, 0x3dc6, 0x4f5b80, 0xc20803a040, 0x0, 0x0)
/home/dan/dev/go/src/github.com/ericaro/frontmatter/frontmatter.go:105 +0x2e4
main.main()
/home/dan/dev/go/src/github.com/astraldynamics/gecko/gecko.go:40 +0x4a7
goroutine 19 [finalizer wait]:
runtime.park(0x413490, 0x6166a8, 0x6151a9)
/usr/lib/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x6166a8, 0x6151a9)
/usr/lib/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/usr/lib/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1445
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment