Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type L ¶
type L []T
L is a list of T
type Op ¶
type Op int
Op is an integer representing an operation on a configuration key value
const ( // Invalid is for invalid operator Invalid Op = iota // Set overwrites the value Set // Append appends an element, even if already present Append // Remove removes an element if present, do nothing if not present Remove // Merge adds an element if not present, do nothing if present Merge // Toggle adds an element if not present, removes it if present Toggle // Insert adds an element at the position specified by Index Insert // Exist tests the existence of a key Exist // Equal tests if the current value of the key is equal to the keyop.T value Equal // NotEqual tests if the current value of the key is not equal to the keyop.T value NotEqual // GreaterOrEqual tests if the current value of the key is greater or equal to the keyop.T value GreaterOrEqual // LesserOrEqual tests if the current value of the key is lesser or equal to the keyop.T value LesserOrEqual // Greater tests if the current value of the key is greater to the keyop.T value Greater // Lesser tests if the current value of the key is lesser to the keyop.T value Lesser )
func (Op) MarshalJSON ¶
MarshalJSON marshals the enum as a quoted json string
func (*Op) UnmarshalJSON ¶
UnmarshalJSON unmarshals a quoted json string to the enum value
Click to show internal directories.
Click to hide internal directories.