utils

package
v1.0.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2023 License: Unlicense Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const SanitizedStringSizeLimit = 100

Variables

This section is empty.

Functions

func FormatDBLogPrefix

func FormatDBLogPrefix(input_time *time.Time) (result string)

Year , Month , Day

func FormatTime

func FormatTime(input_time *time.Time) (result string)

func GenerateNewKeys

func GenerateNewKeys()

func GetFormattedTimeString

func GetFormattedTimeString() (result string)

func GetFormattedTimeStringOBJ

func GetFormattedTimeStringOBJ() (result_string string, result_time time.Time)

func GetJSON

func GetJSON(baseURL string, headers map[string]string, params map[string]string) (target interface{})

func ParseConfig

func ParseConfig(file_path string) (result types.ConfigFile)

func ParseFormattedTimeString

func ParseFormattedTimeString(time_str string) (result time.Time)

func PostJSON

func PostJSON(url string, headers map[string]string, payload interface{}) (result interface{})

func RemoveNonASCII

func RemoveNonASCII(input string) (result string)

func SanitizeInputString

func SanitizeInputString(input string) (result string)

func SetupStackTraceReport

func SetupStackTraceReport()

func ShuffleKeys

func ShuffleKeys[K comparable, V any](m map[K]V) (result []K)

func StringToInt

func StringToInt(input string) (result int)

func WakeOnLan

func WakeOnLan(mac_address string)

func WriteJSON

func WriteJSON(filePath string, data interface{})

func WriteLoginURLPrefix

func WriteLoginURLPrefix(server_login_url_prefix string)

func WriteLoginURLPrefixWG

func WriteLoginURLPrefixWG(wg *sync.WaitGroup, server_login_url_prefix string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL