Documentation ¶
Index ¶
- Constants
- Variables
- func Marshal(obj any) (*configuration.Config, error)
- func Unmarshal(c *configuration.Config, p any) (err error)
- type Decoder
- type Encoder
- type Writer
- func (w Writer) ArrayBegin()
- func (w Writer) ArrayEnd()
- func (w Writer) Bool(boolean bool)
- func (w Writer) Colon()
- func (w Writer) Comma()
- func (w Writer) Float(v float64)
- func (w Writer) Int(v int64)
- func (w Writer) Null()
- func (w Writer) ObjectBegin()
- func (w Writer) ObjectEnd()
- func (w Writer) Quote(text string)
Constants ¶
View Source
const (
MimeType = "application/hocon"
)
Variables ¶
View Source
var ( SpecialCase = map[string]func(v *ho.HoconValue, w Writer){ "time/Time": func(v *ho.HoconValue, w Writer) { fn.Panic1(w.Write(fn.Panic1(json.Marshal(fn.Panic1(time.Parse(time.RFC3339, v.GetString())))))) }, "time/Duration": func(v *ho.HoconValue, w Writer) { w.Int(v.GetTimeDuration(false).Milliseconds()) }, } )
Functions ¶
Types ¶
type Writer ¶ added in v0.1.30
func (Writer) ArrayBegin ¶ added in v0.1.30
func (w Writer) ArrayBegin()
func (Writer) ObjectBegin ¶ added in v0.1.30
func (w Writer) ObjectBegin()
Click to show internal directories.
Click to hide internal directories.