1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-07-03 00:47:13 +02:00

Destroy a list of go lint errors.

This commit is contained in:
Aaron L
2015-03-16 14:42:45 -07:00
parent ae71333bfe
commit 99d0af8b72
25 changed files with 323 additions and 319 deletions

View File

@ -10,7 +10,9 @@ type AttributeErr struct {
GotKind string
}
func MakeAttributeErr(name string, kind DataType, val interface{}) AttributeErr {
// NewAttributeErr creates a new attribute err type. Useful for when you want
// to have a type mismatch error.
func NewAttributeErr(name string, kind DataType, val interface{}) AttributeErr {
return AttributeErr{
Name: name,
WantKind: kind,