utils

package
v3.3.14 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignOptionalStringPtr

func AssignOptionalStringPtr(flagValue string) *string

func AssignStringField

func AssignStringField(flagValue string, fieldName string, inputFunc func(string) (string, error)) (string, error)

func FlagFileUnmarshalJSON

func FlagFileUnmarshalJSON(path string, request any) error

func Format

func Format(commands ...string) string

func FormatAskFieldRequired

func FormatAskFieldRequired(field string) string

func ParseAndAssign

func ParseAndAssign[T any](value string, parseFunc func(string) (T, error)) (*T, error)

func SafeNestedString

func SafeNestedString[T any](parent *T, fieldFunc func(*T) *string) string

func SafeString

func SafeString(value *string) string

func UnmarshalJSONFromReader

func UnmarshalJSONFromReader(file io.Reader, object any) error

func ValidateDate

func ValidateDate(date string) error

func WriteDetailsToFile

func WriteDetailsToFile(data []byte, outPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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