function

package
v0.0.0-...-5ecf4e5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolConvertToStringSwitch

func BoolConvertToStringSwitch(val bool) string

BoolConvertToStringSwitch - translates the value into в on / off

func CreateFileByPatch

func CreateFileByPatch(val string) (*os.File, error)

CreateFileByPatch - creates a file at the specified path and continues writing there

func CreatePatch

func CreatePatch(val string) error

CreatePatch - creates path if it doesn't exist

func CreateServicePatch

func CreateServicePatch(deviceUUID, channelUUID, prefix string) string

CreateServicePatch - correct path generator

func CreateUniqID

func CreateUniqID() string

CreateUniqID - google + satori random generator uuid

func DeleteLastSlashes

func DeleteLastSlashes(val string) string

DeleteLastSlashes - removes an extra slash at the end of a line

func FileExists

func FileExists(val string) (bool, error)

FileExists - does the file exist

func FindConfigurationRead

func FindConfigurationRead(flagConfigurationPatch string) ([]byte, error)

FindConfigurationRead - searches and reads configuration from disk

func FindConfigurationWrite

func FindConfigurationWrite(flagConfigurationPatch string, val []byte) error

FindConfigurationWrite - searches and writes configuration from disk

func GetCurrentFuncName

func GetCurrentFuncName() string

GetCurrentFuncName - returns the function name

func GetMD5Hash

func GetMD5Hash(val string) string

GetMD5Hash - getting md5 string

func ParsURLTwoVal

func ParsURLTwoVal(val *url.URL) (string, string, error)

ParsURLTwoVal - fetches parameters from URL

func SignalToError

func SignalToError(val int) error

SignalToError - signal in error

func StringConvertToInt

func StringConvertToInt(val string) int

StringConvertToInt - convert string to number without error handling

func SubStrByShowLen

func SubStrByShowLen(val, suffix string, l int) string

SubStrByShowLen preparing a string for a license

func TimeRFC3339toTime

func TimeRFC3339toTime(val string) (int64, error)

TimeRFC3339toTime - parses the line into int64 unix nano

func URLDecode

func URLDecode(val string) string

URLDecode - decodes a line from base64

Types

This section is empty.

Jump to

Keyboard shortcuts

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