Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrNilClient defines error for client that is nil. ErrNilClient = errors.New("client must not be nil") //ErrNonPointerType defines error for the value that is non-pointer type. ErrNonPointerType = errors.New("value must be pointer type") //ErrUnhandledKind defines error for the kind that is not handled by this library. ErrUnhandledKind = errors.New("unhandled kind for assigning value to the field") //ErrOverflowSet defines error that will be used for overflow case. ErrOverflowSet = errors.New("error in set the overflowing value to the field") //ErrEmptyLayout defines the error for empty layout given. ErrEmptyLayout = errors.New("layout given is an empty string") )
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser defines struct for the parser API.
func (*Parser) Parse ¶
Parse gives the value to the target from the consul server. Parse uses the struct tag to identify the value of the key.
func (*Parser) SetTimeLayout ¶
type ParserIface ¶
type ParserIface interface {
Parse(interface{}) error
}
Click to show internal directories.
Click to hide internal directories.