Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
usk81 committed Apr 14, 2017
1 parent aba468e commit a61ffe6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
)

// GenericType
// GenericType is the interface used as the basis for generic types
type GenericType interface {
Valid() bool
Value() interface{}
Expand All @@ -14,15 +14,15 @@ type GenericType interface {
Reset()
}

// ErrInvalidGenericValue
// ErrInvalidGenericValue is used as error in generic types
type ErrInvalidGenericValue struct {
Value interface{}
}

// ValidFlag
type ValidFlag bool

// Reset
// Reset resets ValidFlag
func (v *ValidFlag) Reset() {
*v = false
}
Expand Down

0 comments on commit a61ffe6

Please sign in to comment.