Documentation
¶
Index ¶
- Variables
- func Canonicalize(rawurls ...string) []string
- func Decrypt(ciphertext, pass string) (string, error)
- func DecryptJSON(ciphertext, pass string, v interface{}) error
- func Encrypt(plaintext, pass string) (string, error)
- func EncryptJSON(v interface{}, pass string) (string, error)
- func In(s interface{}, val interface{}) bool
- func Index(s interface{}, val interface{}) int
- func InitLog(fileloc string, logLevel string, stdout bool)
- func Max(a int, b int) int
- func Min(a int, b int) int
- func RandStr(strSize int) string
- func SecureRandomString(size int, alphaOnly bool) string
- func SetOutput(fileloc string)
- func SplitAndTrim(s string) []string
- func SplitAndTrimByChar(s string, sep string) []string
- func Substr(s string, from int, to int) string
- func ToIntf(s interface{}) []interface{}
- func ToJSONString(in interface{}) string
- func ToJSONStringNoIndent(in interface{}) string
- func ToLower(s []string) []string
- type Object
- func (o Object) A(path string) []interface{}
- func (o Object) AStr(path string) []string
- func (o Object) B(path string) bool
- func (o Object) Get(path string) interface{}
- func (o Object) I(path string) int
- func (o Object) O(path string) Object
- func (o Object) S(path string) string
- func (o Object) Stringify() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Hostname string
Hostname serves as the default queue name for work queues
Functions ¶
func DecryptJSON ¶
DecryptJSON decrypts to object
func EncryptJSON ¶
EncryptJSON encrypts the given object by serializing to JSON and using Encrypt
func Index ¶
func Index(s interface{}, val interface{}) int
Index returns the index for a given value or -1 if not there
func SecureRandomString ¶
SecureRandomString generate a secure random string of size that can be alpha or alphanum
func SplitAndTrim ¶
SplitAndTrim , split by token "," and trim rach result
func SplitAndTrimByChar ¶
SplitAndTrimByChar , split by sep and trim rach result
func ToIntf ¶
func ToIntf(s interface{}) []interface{}
ToIntf converts a slice or array of a specific type to array of interface{}
func ToJSONString ¶
func ToJSONString(in interface{}) string
ToJSONString return a json string representation of the given object for pretty printing
func ToJSONStringNoIndent ¶
func ToJSONStringNoIndent(in interface{}) string
ToJSONStringNoIndent will stringify json into single line without indentation
Types ¶
Click to show internal directories.
Click to hide internal directories.