Documentation ¶
Index ¶
- Variables
- type JSONStruct
- func (s JSONStruct) DeepCopy() JSONStruct
- func (s JSONStruct) Duration(dotPath string) (time.Duration, error)
- func (s JSONStruct) DurationWithDefault(dotPath string, defaultValue time.Duration) (time.Duration, error)
- func (s JSONStruct) FindElement(dotPath string) (interface{}, bool)
- func (s JSONStruct) Int(dotPath string) (int, bool)
- func (s JSONStruct) IntWithDefault(dotPath string, defaultValue int) int
- func (s JSONStruct) List(dotPath string) ([]interface{}, bool)
- func (s JSONStruct) SetDuration(dotPath string, value time.Duration) error
- func (s JSONStruct) SetInt(dotPath string, value int) error
- func (s JSONStruct) SetList(dotPath string, value []interface{}) error
- func (s JSONStruct) SetString(dotPath, value string) error
- func (s JSONStruct) String(dotPath string) (string, bool)
- func (s JSONStruct) StringWithDefault(dotPath, defaultValue string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrValueNotFound = errors.New("Value not found")
)
Functions ¶
This section is empty.
Types ¶
type JSONStruct ¶
type JSONStruct map[string]interface{}
func New ¶
func New() JSONStruct
func (JSONStruct) DeepCopy ¶
func (s JSONStruct) DeepCopy() JSONStruct
func (JSONStruct) DurationWithDefault ¶
func (JSONStruct) FindElement ¶
func (s JSONStruct) FindElement(dotPath string) (interface{}, bool)
func (JSONStruct) IntWithDefault ¶
func (s JSONStruct) IntWithDefault(dotPath string, defaultValue int) int
func (JSONStruct) List ¶
func (s JSONStruct) List(dotPath string) ([]interface{}, bool)
func (JSONStruct) SetDuration ¶
func (s JSONStruct) SetDuration(dotPath string, value time.Duration) error
func (JSONStruct) SetList ¶
func (s JSONStruct) SetList(dotPath string, value []interface{}) error
func (JSONStruct) SetString ¶
func (s JSONStruct) SetString(dotPath, value string) error
func (JSONStruct) StringWithDefault ¶
func (s JSONStruct) StringWithDefault(dotPath, defaultValue string) string
Click to show internal directories.
Click to hide internal directories.