Versions in this module Expand all Collapse all v2 v2.0.3 Mar 3, 2022 v2.0.2 Mar 3, 2022 v2.0.1 Feb 22, 2022 v2.0.0 Feb 22, 2022 Changes in this version + func Display(data ...interface{}) + func FileExists(name string) bool + func GetDisplayString(data ...interface{}) string + func GetFuncName(i interface{}) string + func GetGOPATHs() []string + func GrepFile(patten string, filename string) (lines []string, err error) + func InSlice(v string, sl []string) bool + func InSliceIface(v interface{}, sl []interface{}) bool + func PrintPointerInfo(buf *bytes.Buffer, headlen int, pointers *pointerInfo) + func RandomCreateBytes(n int, alphabets ...byte) []byte + func SearchFile(filename string, paths ...string) (fullpath string, err error) + func SelfDir() string + func SelfPath() string + func SliceChunk(slice []interface{}, size int) (chunkslice [][]interface{}) + func SliceDiff(slice1, slice2 []interface{}) (diffslice []interface{}) + func SliceFilter(slice []interface{}, a filtertype) (ftslice []interface{}) + func SliceIntersect(slice1, slice2 []interface{}) (diffslice []interface{}) + func SliceMerge(slice1, slice2 []interface{}) (c []interface{}) + func SlicePad(slice []interface{}, size int, val interface{}) []interface + func SliceRand(a []interface{}) (b interface{}) + func SliceRandList(min, max int) []int + func SliceRange(start, end, step int64) (intslice []int64) + func SliceReduce(slice []interface{}, a reducetype) (dslice []interface{}) + func SliceShuffle(slice []interface{}) []interface + func SliceSum(intslice []int64) (sum int64) + func SliceUnique(slice []interface{}) (uniqueslice []interface{}) + func Stack(skip int, indent string) []byte + func ToShortTimeFormat(d time.Duration) string + type Attachment struct + Content []byte + Filename string + Header textproto.MIMEHeader + type BeeMap struct + func NewBeeMap() *BeeMap + func (m *BeeMap) Check(k interface{}) bool + func (m *BeeMap) Count() int + func (m *BeeMap) Delete(k interface{}) + func (m *BeeMap) Get(k interface{}) interface{} + func (m *BeeMap) Items() map[interface{}]interface{} + func (m *BeeMap) Set(k interface{}, v interface{}) bool + type Email struct + Attachments []*Attachment + Auth smtp.Auth + Bcc []string + Cc []string + From string + HTML string + Headers textproto.MIMEHeader + Host string + Identity string + Password string + Port int + ReadReceipt []string + Subject string + Text string + To []string + Username string + func NewEMail(config string) *Email + func (e *Email) Attach(r io.Reader, filename string, args ...string) (a *Attachment, err error) + func (e *Email) AttachFile(args ...string) (a *Attachment, err error) + func (e *Email) Bytes() ([]byte, error) + func (e *Email) Send() error + type KV interface + GetKey func() interface{} + GetValue func() interface{} + type KVs interface + Contains func(key interface{}) bool + GetValueOr func(key interface{}, defValue interface{}) interface{} + IfContains func(key interface{}, action func(value interface{})) KVs + func NewKVs(kvs ...KV) KVs + type SimpleKV struct + Key interface{} + Value interface{} + func (s *SimpleKV) GetKey() interface{} + func (s *SimpleKV) GetValue() interface{} + type SimpleKVs struct + func (kvs *SimpleKVs) Contains(key interface{}) bool + func (kvs *SimpleKVs) GetValueOr(key interface{}, defValue interface{}) interface{} + func (kvs *SimpleKVs) IfContains(key interface{}, action func(value interface{})) KVs Other modules containing this package github.com/whiliang/beego-multi-schema