Documentation
¶
Index ¶
- Variables
- func BoolToPtr(b bool) *bool
- func ByteToPtr(b byte) *byte
- func BytesToPtr(b []byte) *[]byte
- func Float32ToPtr(f float32) *float32
- func Float64ToPtr(f float64) *float64
- func IPv4AddressInString(s string) bool
- func IPv4ExtractFromString(s string) string
- func Int32ToPtr(i int32) *int32
- func Int64ToPtr(i int64) *int64
- func IntToPtr(i int) *int
- func IntsToPtr(i []int) *[]int
- func IsIPv4(host string) bool
- func PtrToBool(b *bool) bool
- func PtrToByte(b *byte) byte
- func PtrToBytes(b *[]byte) []byte
- func PtrToFloat64(f *float64) float64
- func PtrToInt(i *int) int
- func PtrToInt32(i *int32) int32
- func PtrToInt64(i *int64) int64
- func PtrToInts(i *[]int) []int
- func PtrToString(s *string) string
- func PtrToStrings(s *[]string) []string
- func RandomIDwithPrefix(prefix string, length int) string
- func StringReverse(s string) (reversedString string)
- func StringStrip(str, chr string) string
- func StringToInt(s string) (int, error)
- func StringToPtr(s string) *string
- func StringToXXHash(s string) string
- func StringsToPtr(s []string) *[]string
Constants ¶
This section is empty.
Variables ¶
var RandomLetters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
RandomLetters used for Random Generating functions
Functions ¶
func IPv4AddressInString ¶
IPv4AddressInString checks if string contains an IPv4 address
func IPv4ExtractFromString ¶
IPv4ExtractFromString extracts an IPv4 from a string
func PtrToBytes ¶
PtrToBytes converts *[]byte to []byte, if nil a empty []byte is returned
func PtrToFloat64 ¶
PtrToFloat64 converts *float64 to float64, if nil 0 is returned
func PtrToInt32 ¶
PtrToInt32 converts *int32 to int32, if nil 0 is returned
func PtrToInt64 ¶
PtrToInt64 converts *int64 to int64, if nil 0 is returned
func PtrToString ¶
PtrToString converts *string to string, if nil a empty string is returned
func PtrToStrings ¶
PtrToStrings converts *[]string to []string, if nil a empty string slice is returned
func RandomIDwithPrefix ¶
RandomIDwithPrefix generates random Letters with Prefix (letters can be modified by overwriting easygo.RandomLetters)
func StringReverse ¶
StringReverse reversed a string
func StringToXXHash ¶
StringToXXHash Retuns a hash for a String
Types ¶
This section is empty.