utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVersion

func CheckVersion()

func Contains

func Contains(arr []string, char string) bool

func ConvertedNullPointer

func ConvertedNullPointer(p *string) string

func FormatBytes

func FormatBytes(bytes int64) string

func FormatTime

func FormatTime(t *time.Time) string

func GenerateRandomName

func GenerateRandomName(s string) string

func GenerateRandomPasswords

func GenerateRandomPasswords() string

func GenerateTable

func GenerateTable(headers []string, rows [][]string, columnWidths []int) string

func GetBasicOptions

func GetBasicOptions(basicOptions []global.BasicOptions) ([]string, [][]string, []int)

func GetModule

func GetModule(id, level int, provider, name, moduleProvider, introduce, moreInfo string, basicOptions []global.BasicOptions) global.Module

func GetModuleName

func GetModuleName(m global.Module) string

func GetUTC8TimeType1

func GetUTC8TimeType1(t string) (string, error)

func GetUTC8TimeType2

func GetUTC8TimeType2(t string) (string, error)

func GetUTC8TimeType3

func GetUTC8TimeType3(t string) (string, error)

func InInt

func InInt(i int, int_array []int) bool

func PrintfNotNilFloat64

func PrintfNotNilFloat64(p string, s *float64)

func PrintfNotNilInt32

func PrintfNotNilInt32(p string, s *int32)

func PrintfNotNilInt64

func PrintfNotNilInt64(p string, s *int64)

func PrintfNotNilString

func PrintfNotNilString(p string, s *string)

func PrintfNotNilUInt64

func PrintfNotNilUInt64(p string, s *uint64)

func SurveyConfirm

func SurveyConfirm(message string) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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