Documentation ¶
Index ¶
- func Base64(n int) string
- func Bytes(n int) []byte
- func DecodeBase64(str string) (string, error)
- func DecodeBase64Bytes(src []byte) ([]byte, error)
- func EncodeBase64(src string) string
- func EncodeBase64Bytes(src []byte) []byte
- func FromBytes(bs *[]byte) string
- func Hex(n int) string
- func Join[T ~string](sep string, strs ...T) string
- func String(n int, letters ...string) string
- func Sum(ss ...string) string
- func ToBytes(s *string) (bs []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64 ¶
DecodeBase64 decodes the given string, which can accept padded or none padded format.
func DecodeBase64Bytes ¶
DecodeBase64Bytes decodes the given bytes.
func EncodeBase64 ¶
EncodeBase64 encodes the given string, and then output standard format.
func EncodeBase64Bytes ¶
EncodeBase64Bytes is similar to DecodeBase64, but returns bytes.
func Hex ¶
Hex generates a random hex string with length of n e.g: 67aab2d956bd7cc621af22cfb169cba8.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.