Documentation ¶
Index ¶
- Constants
- func Assert(value bool)
- func CheckErr(err error)
- func CheckTimeStampIsInThisMonth(timestamp int64) (result bool)
- func ClipboardCopy() string
- func ClipboardPaste(paste string)
- func ConvertDateStrToInt(timeString string) int64
- func ConvertServerTimeStrToInt(timeString string) int64
- func ConvertTimeStrToInt(timeString string) int64
- func ConvertUnixTimeToDateStr(timeValue int64) string
- func ConvertUnixTimeToStr(timeValue int64) string
- func CreateDirectory(dirName string) bool
- func Decrypt(data []byte, passphrase string) (plaintext []byte, success bool)
- func Encrypt(data []byte, passphrase string) []byte
- func Exists(name string) bool
- func GenSysPassphrase() (result string)
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(n int) string
- func Get32BitMd5FromString(input string) int32
- func Get64BitMd5FromString(input string) int64
- func GetAppDataDir() (appData string)
- func GetColor(max float64, val float64, reverse bool) *color.NRGBA
- func GetImgFromUrl(srcUrl string, dstPath string)
- func GetSortKeysFromFloat64Map(x interface{}, reverse bool) []float64
- func GetSortKeysFromIntMap(x interface{}, reverse bool) []int
- func GetSortKeysFromStrMap[T any](x StringMap[T], reverse bool) []string
- func GetSortKeysFromStrMap2(x interface{}, reverse bool) []string
- func GetTimeDiffStringFromDiff(timeDiff int64) string
- func GetTimeDiffStringFromTS(timestamp int64) (string, bool)
- func HumanizeNumber(input float64) string
- func OpenUrl(url string)
- func RemoveIdx[T any](s []T, idx int) []T
- func SendReq(urlStr string) (retval bool)
- func TimeDiffStrStarEnd(start int64, end int64) (string, bool)
- func UnixTS2AdashDateTimeStr(ts int64) string
- func UnixTS2DateStr(ts int64) string
- func UnixTS2DateTimeStr(ts int64) string
- func UnixTS2YMStr(ts int64) string
- type StringMap
Constants ¶
View Source
const (
OmipSoftwareVersion = "1.0.11"
)
Variables ¶
This section is empty.
Functions ¶
func ClipboardCopy ¶
func ClipboardCopy() string
func ClipboardPaste ¶
func ClipboardPaste(paste string)
func ConvertDateStrToInt ¶ added in v1.0.11
func ConvertTimeStrToInt ¶
func ConvertUnixTimeToDateStr ¶ added in v1.0.11
func ConvertUnixTimeToStr ¶
func CreateDirectory ¶
func GenSysPassphrase ¶
func GenSysPassphrase() (result string)
func GenerateRandomBytes ¶
func GenerateRandomString ¶
func Get32BitMd5FromString ¶
func Get64BitMd5FromString ¶
func GetAppDataDir ¶
func GetAppDataDir() (appData string)
func GetImgFromUrl ¶
func GetSortKeysFromIntMap ¶
func GetSortKeysFromStrMap ¶
func GetSortKeysFromStrMap2 ¶
func GetTimeDiffStringFromTS ¶
func HumanizeNumber ¶
func UnixTS2AdashDateTimeStr ¶
func UnixTS2DateStr ¶
func UnixTS2DateTimeStr ¶
func UnixTS2YMStr ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.