Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Marshal ¶
Marshal encode interface v into INI-format
Types ¶
type Date ¶
Date is equalient to time.Time but with custom Marshaler-interface to store only the date
func (*Date) MarshalINI ¶
MarshalINI will marshal the time into a string of format y-d-m-timezone-offset
type INIDecoderError ¶
type INIDecoderError struct {
// contains filtered or unexported fields
}
INIDecoderError is returned on decoding error
func (*INIDecoderError) Error ¶
func (i *INIDecoderError) Error() string
Error returns an formatted string of the INIDecoderError
type INIEncoderError ¶
type INIEncoderError struct {
// contains filtered or unexported fields
}
INIEncoderError is returned on encoding error
func (*INIEncoderError) Error ¶
func (i *INIEncoderError) Error() string
Error returns an formatted string of the INIEncoderError
type IP ¶
IP is equalient to net.IP but with custom Marshaler-interface
func (*IP) MarshalINI ¶
MarshalINI will marshal the IP into IPv4 or IPv6 readable format, e.g 127.0.0.1 or ::
type Marshaler ¶
Marshaler is an interface to implement for unknown types
type SyntaxError ¶
type SyntaxError struct {
// contains filtered or unexported fields
}
SyntaxError is returned when the formatting is wrong.