mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 06:28:13 +01:00
Configuration file not required anymore DIUN_DB env var renamed DIUN_DB_PATH Only accept duration as timeout value (10 becomes 10s) Add getting started doc Enhanced documentation Add note about test notifications (#79) Improve configuration management Fix telegram init All fields in configuration now camelCased Improve configuration validation Update doc Update FAQ Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
35 lines
345 B
Go
35 lines
345 B
Go
package file
|
|
|
|
type bar string
|
|
|
|
type Yo struct {
|
|
Foo string
|
|
Fii string
|
|
Fuu string
|
|
Yi *Yi `label:"allowEmpty"`
|
|
}
|
|
|
|
func (y *Yo) SetDefaults() {
|
|
y.Foo = "foo"
|
|
y.Fii = "fii"
|
|
}
|
|
|
|
type Yi struct {
|
|
Foo string
|
|
Fii string
|
|
Fuu string
|
|
}
|
|
|
|
func (y *Yi) SetDefaults() {
|
|
y.Foo = "foo"
|
|
y.Fii = "fii"
|
|
}
|
|
|
|
type Yu struct {
|
|
Yi
|
|
}
|
|
|
|
type Ye struct {
|
|
*Yi
|
|
}
|