Documentation ¶ Index ¶ func GetUserInput(asking string, masked bool) (userInput string, err error) func SetStructField(obj any, key string, value string) (bool, error) func ToMap(in interface{}, tag string) (map[string]interface{}, error) func ToTagFieldNameMap(obj any, tag string, tagNum int) (map[string]string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetUserInput ¶ func GetUserInput(asking string, masked bool) (userInput string, err error) func SetStructField ¶ func SetStructField(obj any, key string, value string) (bool, error) Set arbitrary struct field. func ToMap ¶ func ToMap(in interface{}, tag string) (map[string]interface{}, error) func ToTagFieldNameMap ¶ func ToTagFieldNameMap(obj any, tag string, tagNum int) (map[string]string, error) Return map[tag]FieldName of a given struct. TODO: Add check if tag is not set. Types ¶ This section is empty. Source Files ¶ View all Source files util.go Click to show internal directories. Click to hide internal directories.