Documentation ¶
Index ¶
- Constants
- func Load(path string, v interface{}) error
- func Marshal(v interface{}) ([]byte, error)
- func NewDecoder(rd io.Reader) encoding.Decoder
- func NewEncoder(out io.Writer) encoding.Encoder
- func Save(path string, v interface{}) error
- type DuplicateKeyError
- type LocalDate
- type LocalDateTime
- type LocalTime
Constants ¶
View Source
const ( TokenEqual TokenType = "'='" TokenDot TokenType = "'.'" TokenComma TokenType = "','" TokenLBrace TokenType = "'{'" TokenRBrace TokenType = "'}'" TokenLSquare TokenType = "'['" TokenRSquare TokenType = "']'" TokenDoubleLSquare TokenType = "'[['" TokenDoubleRSquare TokenType = "']]'" TokenDateTime TokenType = "<datetime>" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DuplicateKeyError ¶
type DuplicateKeyError struct { Kind string Prefix []interface{} Path []interface{} Position Cursor }
func (*DuplicateKeyError) Error ¶
func (e *DuplicateKeyError) Error() string
type LocalDate ¶
func MakeLocalDate ¶
type LocalDateTime ¶
func MakeLocalDateTime ¶
func MakeLocalDateTime(t time.Time) LocalDateTime
func (LocalDateTime) String ¶
func (dt LocalDateTime) String() string
type LocalTime ¶
func MakeLocalTime ¶
Click to show internal directories.
Click to hide internal directories.