Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveBlanks ¶ added in v0.19.0
func RemoveBlanks(data interface{})
RemoveBlanks goes through the data, assumed to be an array or map of some kind, and removes any data that is a nil or zero value. Maps with no keys are also removed.
Note that this will not check the data again. So if you have the following
parent: { child: {} }
The result will be parent: {}
it will not go through it again and remove parent.
func RepeatSymbol ¶
RepeatSymbol returns symbol <count> times, with <separator> between each one. if symbol = ?, separator = , and count = 5 this returns: "?,?,?,?,?"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.