Documentation ¶
Index ¶
- func ContainsString(arr []string, str string) bool
- func CountIndent(s string) int
- func CountRune(s string, r rune) int
- func DecodeBase64(value string) ([]byte, error)
- func DecryptWithKey(cipherData []byte, secretKey string) ([]byte, error)
- func DecryptWithMasterKey(data []byte) ([]byte, error)
- func EncodeBase64(value []byte) string
- func EncryptWithKey(data []byte, secretKey string) ([]byte, error)
- func EncryptWithMasterKey(data []byte) ([]byte, error)
- func FromJSON(src string, dst interface{})
- func GenerateRandomKey(length int) []byte
- func GenerateRandomString(n int) (string, error)
- func GetCipherKey(secretKey string) []byte
- func GetDetachedCmd(name string, arg ...string) *exec.Cmd
- func InTrustedRoot(path string, trustedRoot string) error
- func ReplaceEscapeSymbols(s string) string
- func SHA1(value string) string
- func SliceInsert(arr []interface{}, elem interface{}, index int) []interface{}
- func SliceRemove(arr []interface{}, elem interface{}) []interface{}
- func SplitAndTrim(str string, delim string) []string
- func ToJSON(v interface{}) string
- func ToJSONIndent(v interface{}) string
- func TrimQuotes(s string) string
- func WhiteSpaceOnly(s string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
func CountIndent ¶
func DecodeBase64 ¶
func DecryptWithMasterKey ¶
func EncodeBase64 ¶
func EncryptWithMasterKey ¶
func GenerateRandomKey ¶
source: https://github.com/gorilla/securecookie/blob/master/securecookie.go
func GenerateRandomString ¶
GenerateRandomString returns a crypto-strong random string of specified length.
func GetCipherKey ¶
func InTrustedRoot ¶
func ReplaceEscapeSymbols ¶
func SliceInsert ¶
func SliceInsert(arr []interface{}, elem interface{}, index int) []interface{}
https://stackoverflow.com/questions/46128016/insert-a-value-in-a-slice-at-a-given-index
func SliceRemove ¶
func SliceRemove(arr []interface{}, elem interface{}) []interface{}
func SplitAndTrim ¶
func ToJSONIndent ¶
func ToJSONIndent(v interface{}) string
func TrimQuotes ¶
func WhiteSpaceOnly ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.