Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStringValue ¶
func GetStringValue(str string) interface{}
GetStringValue converts the given string to either bool, int, float or single quoted string.
func ToIfaceSlice ¶
func ToIfaceSlice(v interface{}) []interface{}
ToIfaceSlice converts an interface to slice of interfaces if it is not nil.
func TryBool ¶
TryBool tries to convert the given interface to bool and returns it if it is successful. An additional boolean flag denotes if it was successful or not.
func TryFloat ¶
TryFloat tries to convert the given interface to float64 and returns it if it is successful. An additional boolean flag denotes if it was successful or not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.