Documentation ¶
Index ¶
- func AssertTestCondition(t *testing.T, expected any, received any, errorMessage string)
- func ConvertJson(model any) (string, error)
- func DeleteFile(path string) error
- func FileExists(path string) bool
- func HomeFilePath(path string) string
- func ISODate(t time.Time) string
- func ISODateNow() string
- func ParseJson[T any](content io.Reader) (T, error)
- func PrintChessBoard(tiles string)
- func PrintStruct(obj any)
- func PrintTable(title string, headers table.Row, rows []table.Row)
- func ReadFromFile(path string) ([]byte, error)
- func ReadPasswordFromStdin(prompt string) (string, error)
- func ReadStringFromStdin(prompt string) (string, error)
- func ToLocalDate(date string) string
- func WaitForAnyKey() error
- func WriteToFile(path string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertTestCondition ¶
func ConvertJson ¶
func DeleteFile ¶
func FileExists ¶
func HomeFilePath ¶
func ISODateNow ¶
func ISODateNow() string
func PrintChessBoard ¶
func PrintChessBoard(tiles string)
func PrintStruct ¶
func PrintStruct(obj any)
func ReadFromFile ¶
func ReadPasswordFromStdin ¶
func ReadStringFromStdin ¶
func ToLocalDate ¶
func WaitForAnyKey ¶
func WaitForAnyKey() error
func WriteToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.