Documentation ¶
Index ¶
- func ConstrainValue(input int, minimumValue int, maximumValue int) int
- func FetchOutboundIP() (net.IP, error)
- func Makedir(folder string) string
- func MapAndConstrainValueCeil(x int, in_min int, in_max int, out_min int, out_max int) int
- func MapValueCeil(x int, in_min int, in_max int, out_min int, out_max int) int
- func ReadJson(data interface{}, fileName string)
- func ReadResourceFile(fileName string) []byte
- func TrimExplode(str string, token string) []string
- func UpdateJson(data interface{}, fileName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchOutboundIP ¶
Get preferred outbound ip of this machine
func ReadJson ¶
func ReadJson(data interface{}, fileName string)
Reads the JSON file into data and creates a new file if not found
func ReadResourceFile ¶
Read contents from embedded file
func TrimExplode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.