Skip to content

Instantly share code, notes, and snippets.

@sunho
Created January 17, 2018 09:32
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 sunho/4ecdc0813638815fbdd7af8fbc1ad84d to your computer and use it in GitHub Desktop.
Save sunho/4ecdc0813638815fbdd7af8fbc1ad84d to your computer and use it in GitHub Desktop.
func badtype(expected string, data interface{}) error {
return e("cannot load TOML value of type %T into a Go %s", data, expected)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment