Documentation
¶
Index ¶
- Constants
- func CompareText(txt1 string, txt2 string, checkLines bool) string
- func DecodeFromBase64(input string) string
- func DecodeURL(s string) (string, error)
- func EncodeJWT(headers map[string]interface{}, claims map[string]interface{}, ...) (string, error)
- func EncodeToBase64(input string) string
- func EncodeURL(s string) string
- func GeneratePassword(length int, enableSpecialChars bool, enableNumeric bool, enableCapital bool) string
- func GenerateULID() string
- func GenerateUUID() string
- func HashString(str string, algorithm string) (string, error)
- func IndentJSON(input string) (string, error)
- func Json2Yaml(json string) (string, error)
- func MinifyJSON(input string) (string, error)
- func ParseFormat(format string) string
- func Properties2Yaml(propertiesData string) (string, error)
- func ULIDtoUUID(ulidStr string) (string, error)
- func UUIDtoULID(uuidStr string) (string, error)
- func Yaml2Json(yamlString string) (string, error)
- func Yaml2Properties(yamlData string) (string, error)
- type JWT
- type Time
Constants ¶
View Source
const ( DateFormat = "02-01-2006 15:04:05" ToDateFormat = "Monday, January 02, 2006 3:04:05 PM" )
View Source
const B32_CHARACTERS = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"
View Source
const (
MaxLength = 2048
)
Variables ¶
This section is empty.
Functions ¶
func CompareText ¶ added in v0.0.2
func DecodeFromBase64 ¶
func EncodeToBase64 ¶
encodeToBase64 encodes a string to base64
func GeneratePassword ¶
func GenerateULID ¶
func GenerateULID() string
func GenerateUUID ¶ added in v0.0.2
func GenerateUUID() string
func IndentJSON ¶
func MinifyJSON ¶
func ParseFormat ¶ added in v0.0.2
func Properties2Yaml ¶ added in v0.0.2
func ULIDtoUUID ¶ added in v0.0.2
func UUIDtoULID ¶ added in v0.0.2
func Yaml2Properties ¶ added in v0.0.2
Types ¶
type Time ¶ added in v0.0.2
type Time struct {
UTC string `json:"utc"`
YourTimezone string `json:"your_timezone"`
Epoch int64 `json:"epoch"`
}
func ConvertTimeFromEpoch ¶ added in v0.0.2
func ConvertTimeFromFormat ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.