Initial commit.
This commit is contained in:
22
field.go
Normal file
22
field.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package sec
|
||||
|
||||
import (
|
||||
// stdlib
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// This structure represents every parsable field that was found while
|
||||
// reading passed structure.
|
||||
type field struct {
|
||||
// Name is a field name. Mostly for debugging purpose.
|
||||
Name string
|
||||
// Pointer is a pointer to field wrapped in reflect.Value.
|
||||
Pointer reflect.Value
|
||||
// EnvVar is a name of environment variable we will try to read.
|
||||
EnvVar string
|
||||
// Kind is a reflect.Kind value.
|
||||
Kind reflect.Kind
|
||||
|
||||
// Next variables are tag-related.
|
||||
optional bool
|
||||
}
|
||||
Reference in New Issue
Block a user