Documentation
¶
Index ¶
- Constants
- Variables
- func CompareURI(a, b URI) int
- func Decode(msgLen uint32, pictureInputFile image.Image) (message []byte)
- func EncodeBytesInImageBuffer(bufA *bytes.Buffer, imageA *image.Image, contentA []byte, optsA ...string) error
- func EncodeNRGBA(writeBuffer *bytes.Buffer, rgbImage *image.NRGBA, message []byte) error
- func GetMessageSizeFromImage(pictureInputFile image.Image) (size uint32)
- func GetTextByParagraph(content []byte) ([]string, error)
- func GetXmlContent(docxFile string) ([]byte, error)
- func IsPop3Err(s string) bool
- func IsPop3OK(s string) bool
- func MaxEncodeSize(img image.Image) uint32
- func NewCountingWriter(argsA ...interface{}) io.Writer
- func SimilarChar(str1 []rune, str2 []rune) int
- func SimilarStr(str1 []rune, str2 []rune) (int, int, int)
- func SimilarText(str1 string, str2 string) int
- func SortMSIArray(aryA []map[string]interface{}, keyA string, descA bool)
- func SortMSSArray(aryA []map[string]string, keyA string, descA bool)
- type AnyQueue
- func (p *AnyQueue) Clear()
- func (p *AnyQueue) Get(indexA ...int) interface{}
- func (v AnyQueue) GetInfo() string
- func (v AnyQueue) GetList() []interface{}
- func (p *AnyQueue) Insert(idxA int, byteA interface{}) error
- func (p *AnyQueue) Pick() interface{}
- func (p *AnyQueue) Pop() interface{}
- func (p *AnyQueue) Push(byteA interface{})
- func (p *AnyQueue) Remove(idxA int) error
- func (p *AnyQueue) Reset(capA ...int)
- func (p *AnyQueue) SetByIndex(idxA int, valueA interface{}) error
- func (p *AnyQueue) Size() int
- func (v AnyQueue) String() string
- type AnyQueueItem
- type ByteQueue
- func (p *ByteQueue) Clear()
- func (p *ByteQueue) Get(indexA ...int) interface{}
- func (v ByteQueue) GetInfo() string
- func (v ByteQueue) GetList() []byte
- func (p *ByteQueue) Insert(idxA int, byteA byte) error
- func (p *ByteQueue) Pick() interface{}
- func (p *ByteQueue) Pop() interface{}
- func (p *ByteQueue) Push(byteA byte)
- func (p *ByteQueue) Remove(idxA int) error
- func (p *ByteQueue) Reset(capA ...int)
- func (p *ByteQueue) Size() int
- func (v ByteQueue) String() string
- type ByteQueueItem
- type CompactDelegate
- type CompactIterator
- type Connection
- type CountingWriter
- type ExitCallback
- type FileInfo
- type FlexRef
- type Indentation
- type IntSumBuffer
- type InterpolationFunction
- type Iterator
- type List
- type LoginAuth
- type MSIArraySorter
- type MSSArraySorter
- type MapRef
- type MemFile
- func (fb *MemFile) Bytes() []byte
- func (fb *MemFile) Close() error
- func (fb *MemFile) Read(b []byte) (int, error)
- func (fb *MemFile) ReadAll() ([]byte, error)
- func (fb *MemFile) ReadAt(b []byte, offset int64) (int, error)
- func (fb *MemFile) Seek(offset int64, whence int) (int64, error)
- func (fb *MemFile) Truncate(n int64) error
- func (fb *MemFile) Write(b []byte) (int, error)
- func (fb *MemFile) WriteAt(b []byte, offset int64) (int, error)
- type Message
- type MessageList
- type OrderedMap
- func (om *OrderedMap) Delete(key interface{}) (interface{}, bool)
- func (om *OrderedMap) DeleteByIndex(idxA int) error
- func (om *OrderedMap) DeleteQuick(key interface{}) error
- func (pA *OrderedMap) Dump() string
- func (om *OrderedMap) Get(key interface{}) (interface{}, bool)
- func (om *OrderedMap) GetByIndex(idxA int) (interface{}, bool)
- func (om *OrderedMap) GetCompact(key interface{}) interface{}
- func (om *OrderedMap) GetItemByIndex(idxA int) []interface{}
- func (om *OrderedMap) GetItems() []interface{}
- func (om *OrderedMap) GetKeyByIndex(idxA int) (interface{}, bool)
- func (om *OrderedMap) GetKeys() []interface{}
- func (om *OrderedMap) GetPair(key interface{}) *OrderedMapPair
- func (om *OrderedMap) GetPairByIndex(idxA int) *OrderedMapPair
- func (om *OrderedMap) GetQuick(key interface{}) interface{}
- func (om *OrderedMap) GetString(key interface{}) string
- func (om *OrderedMap) GetStringKeys() []string
- func (om *OrderedMap) GetValues() []interface{}
- func (om *OrderedMap) Len() int
- func (om *OrderedMap) Load(key interface{}) (interface{}, bool)
- func (om *OrderedMap) MarshalJSON() ([]byte, error)
- func (om *OrderedMap) MoveAfter(key, markKey interface{}) error
- func (om *OrderedMap) MoveBefore(key, markKey interface{}) error
- func (om *OrderedMap) MoveToBack(key interface{}) error
- func (om *OrderedMap) MoveToFront(key interface{}) error
- func (om *OrderedMap) Newest() *OrderedMapPair
- func (om *OrderedMap) Oldest() *OrderedMapPair
- func (om *OrderedMap) Remove(key interface{}) (interface{}, bool)
- func (om *OrderedMap) Set(key interface{}, value interface{}) (interface{}, bool)
- func (om *OrderedMap) SetByIndex(idxA int, value interface{}) error
- func (pA *OrderedMap) SortStringKeys(argsA ...string) error
- func (pA *OrderedMap) SortStringKeysByFunc(funcA func(i, j int) bool) error
- func (om *OrderedMap) Store(key interface{}, value interface{}) (interface{}, bool)
- func (om OrderedMap) String() string
- func (om *OrderedMap) ToMap() map[string]interface{}
- func (om *OrderedMap) ToMapAnyKey() map[interface{}]interface{}
- func (om *OrderedMap) UnmarshalJSON(data []byte) error
- type OrderedMapPair
- type PlainAuth
- type Pop3Client
- func (c *Pop3Client) Authorization(user, pass string) error
- func (c *Pop3Client) Dele(msg int) error
- func (c *Pop3Client) GetCount() (count int, err error)
- func (c *Pop3Client) GetMessage(idxT int, optsA ...string) (map[string]string, error)
- func (c *Pop3Client) GetUID(idxA int) (uid string, err error)
- func (c *Pop3Client) ListAll() (list []MessageList, err error)
- func (c *Pop3Client) ListMessages(argsA ...string) (list []map[string]string, err error)
- func (c *Pop3Client) ListUIDAll() (list []map[string]string, err error)
- func (c *Pop3Client) Noop() error
- func (c *Pop3Client) Quit() error
- func (c *Pop3Client) Retr(msg int) (*enmime.Envelope, error)
- func (c *Pop3Client) Rset() error
- func (c *Pop3Client) SendCommand(cmdA string, argsA ...interface{}) ([]string, error)
- func (c *Pop3Client) Stat() (count, size int, err error)
- type QuickDelegate
- type QuickObject
- type QuickVarDelegate
- type RandomX
- type Root
- type Seq
- type ServerInfo
- type SimpleEvent
- type SimpleFlexObject
- func (p *SimpleFlexObject) AddItem(valueA string) string
- func (p *SimpleFlexObject) AddItemWithKey(keyA string, valueA string) string
- func (p *SimpleFlexObject) Copy() *SimpleFlexObject
- func (p *SimpleFlexObject) Decode(strA string, mustA bool)
- func (p *SimpleFlexObject) Encode(defaultA ...string) string
- func (p *SimpleFlexObject) GetIndexByKey(keyA string) int
- func (v SimpleFlexObject) GetIndexMap() map[string]string
- func (p *SimpleFlexObject) GetItem(idxA int, defaultA ...string) string
- func (p *SimpleFlexObject) GetItemWithKey(keyA string, defaultA ...string) string
- func (v SimpleFlexObject) GetItems() []string
- func (v SimpleFlexObject) GetItemsWithKey() []string
- func (v SimpleFlexObject) GetItemsWithoutKey() []string
- func (v SimpleFlexObject) GetKeys() []string
- func (v SimpleFlexObject) GetMap() map[string]string
- func (p *SimpleFlexObject) InsertItem(valueA string, idxA int) string
- func (p *SimpleFlexObject) InsertItemWithKey(keyA string, valueA string, idxA int) string
- func (p *SimpleFlexObject) KeyExists(keyA string) bool
- func (v SimpleFlexObject) KeySize() int
- func (p *SimpleFlexObject) RemoveItemByIndex(idxA int) string
- func (p *SimpleFlexObject) RemoveItemByKey(keyA string) string
- func (p *SimpleFlexObject) SetItem(valueA string, idxA int) string
- func (p *SimpleFlexObject) SetItemByKey(valueA string, keyA string) string
- func (p *SimpleFlexObject) SetItemWithKey(keyA string, valueA string) string
- func (v SimpleFlexObject) Size() int
- func (p SimpleFlexObject) String() string
- type SimpleStack
- func (p *SimpleStack) Clear()
- func (p *SimpleStack) Peek() interface{}
- func (p *SimpleStack) PeekLayer(idxA int) interface{}
- func (p *SimpleStack) Pop() interface{}
- func (p *SimpleStack) Push(vA interface{})
- func (p *SimpleStack) Reset(argsA ...interface{})
- func (p *SimpleStack) Reverse() *SimpleStack
- func (p *SimpleStack) SetByIndex(idxA int, vA interface{}) error
- func (p *SimpleStack) Size() int
- type SortStruct
- type StringRing
- type StructAny
- func (p *StructAny) AsCData() *StructAny
- func (p *StructAny) Marshal() ([]byte, error)
- func (p *StructAny) MarshalToString() (string, error)
- func (p StructAny) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (p *StructAny) WithIndent(prefix string, indent string) *StructAny
- func (p *StructAny) WithRoot(name string, attributes map[string]string) *StructAny
- type StructMap
- func (smap *StructMap) AsCData() *StructMap
- func (smap *StructMap) Marshal() ([]byte, error)
- func (smap *StructMap) MarshalToString() (string, error)
- func (smap StructMap) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (smap *StructMap) Print() *StructMap
- func (smap *StructMap) WithIndent(prefix string, indent string) *StructMap
- func (smap *StructMap) WithRoot(name string, attributes map[string]string) *StructMap
- type SyncMap
- func (p *SyncMap) Clear()
- func (p *SyncMap) Delete(keyA string)
- func (p *SyncMap) Get(keyA string, defaultA ...interface{}) interface{}
- func (p *SyncMap) GetList() interface{}
- func (p *SyncMap) Lock()
- func (p *SyncMap) QuickClear()
- func (p *SyncMap) QuickDelete(keyA string)
- func (p *SyncMap) QuickGet(keyA string, defaultA ...interface{}) interface{}
- func (p *SyncMap) QuickSet(keyA string, vA interface{})
- func (p *SyncMap) QuickSize() int
- func (p *SyncMap) RLock()
- func (p *SyncMap) RUnlock()
- func (p *SyncMap) Reset()
- func (p *SyncMap) Set(keyA string, vA interface{})
- func (p *SyncMap) Size() int
- func (p *SyncMap) TryClear() bool
- func (p *SyncMap) TryDelete(keyA string) bool
- func (p *SyncMap) TryGet(keyA string, defaultA ...interface{}) interface{}
- func (p *SyncMap) TryLock()
- func (p *SyncMap) TryRLock()
- func (p *SyncMap) TrySet(keyA string, vA interface{}) bool
- func (p *SyncMap) TrySize() int
- func (p *SyncMap) Unlock()
- type SyncQueue
- func (p *SyncQueue) Add(vA interface{})
- func (p *SyncQueue) Clear()
- func (p *SyncQueue) ClearAdd(vA interface{})
- func (p *SyncQueue) Get() (interface{}, bool)
- func (p *SyncQueue) GetCompact() interface{}
- func (p *SyncQueue) PeekCompact(idxA int) interface{}
- func (p *SyncQueue) PeekFirstCompact() interface{}
- func (p *SyncQueue) PeekLast() (interface{}, bool)
- func (p *SyncQueue) PeekLastCompact() interface{}
- func (p *SyncQueue) QuickGet() interface{}
- func (p *SyncQueue) QuickGetList() []interface{}
- func (p *SyncQueue) RemoveLast()
- func (p *SyncQueue) ReplaceFirst(vA interface{})
- func (p *SyncQueue) ReplaceLast(vA interface{})
- func (p *SyncQueue) Size() int
- type SyncStack
- type TK
- func (pA *TK) AESDecrypt(src, key []byte) ([]byte, error)
- func (pA *TK) AESEncrypt(src, key []byte) ([]byte, error)
- func (pA *TK) Abs(c interface{}) interface{}
- func (pA *TK) AbsInt(c int) int
- func (pA *TK) AddDebug(strA string)
- func (pA *TK) AddDebugF(formatA string, argsA ...interface{})
- func (pA *TK) AddLastSubString(strA string, subStrA string) string
- func (pA *TK) AdjustBigFloat(nA *big.Float, digitA ...int) *big.Float
- func (pA *TK) AdjustFloat(nA float64, digitA ...int) float64
- func (pA *TK) AlipaySignString(valuesA interface{}, keyA string) string
- func (pA *TK) AnalyzeCommandLineParamter(cmdLineA string) []string
- func (pA *TK) AnalyzeURLParams(strA string) map[string]string
- func (pA *TK) AnyArrayToStringArray(vA []interface{}) []string
- func (pA *TK) AppendDualLineList(listA [][]string, fileNameA string) string
- func (pA *TK) AppendSimpleMapFromFile(mapA map[string]string, fileNameA string) string
- func (pA *TK) AppendStringToFile(strA string, fileA string) string
- func (pA *TK) ArrayContains(aryA interface{}, vA interface{}) bool
- func (pA *TK) BigFloatExp(f1 *big.Float) *big.Float
- func (pA *TK) BigFloatLog(f1 *big.Float) *big.Float
- func (pA *TK) BigFloatPower(f1 *big.Float, f2 *big.Float) *big.Float
- func (pA *TK) BitXor(p interface{}, v interface{}) interface{}
- func (pA *TK) BoolToInt(b bool) int
- func (pA *TK) BoolToStr(vA bool) string
- func (pA *TK) ByteSliceToStringDec(bufA []byte, sepA string) string
- func (pA *TK) ByteToHex(byteA byte) string
- func (pA *TK) BytesContains(dataA []byte, subA interface{}) bool
- func (pA *TK) BytesEndsWith(dataA []byte, subA interface{}) bool
- func (pA *TK) BytesIndex(dataA []byte, subA interface{}) int
- func (pA *TK) BytesStartsWith(dataA []byte, subA interface{}) bool
- func (pA *TK) BytesToData(bytesA []byte, dataA interface{}, optsA ...string) error
- func (pA *TK) BytesToHex(bufA []byte, optsA ...string) string
- func (pA *TK) BytesToHexX(bufA []byte) string
- func (pA *TK) CalCosineSimilarityBetweenFloatsBig(f1, f2 []float64) float64
- func (pA *TK) CalTextSimilarity(str1A string, str2A string) float64
- func (pA *TK) Ceil(nA interface{}) interface{}
- func (p *TK) CenterEnlargeImage(imgA image.Image, optsA ...string) image.Image
- func (pA *TK) CheckErr(prefixA string, errA error)
- func (pA *TK) CheckErrCompact(errA error)
- func (pA *TK) CheckErrStr(errStrA string, argsA ...interface{})
- func (pA *TK) CheckErrStrf(formatA string, errStrA string, argsA ...interface{})
- func (pA *TK) CheckErrX(errA interface{}, funcsA ...(func()))
- func (pA *TK) CheckErrf(formatA string, argsA ...interface{})
- func (pA *TK) CheckError(errA interface{}, funcsA ...(func()))
- func (pA *TK) CheckErrorFunc(errA error, funcA func())
- func (pA *TK) CheckErrorString(strA string, funcsA ...(func()))
- func (pA *TK) CheckToken(tokenA string, optsA ...string) string
- func (pA *TK) CleanHtmlPlaceholders(strA string) string
- func (pA *TK) ClearDebug()
- func (pA *TK) ClearVar()
- func (pA *TK) Close(vA interface{}) error
- func (pA *TK) ColorToHex(colorA color.Color, optsA ...string) string
- func (pA *TK) CompactJson(jsonA string, optsA ...string) string
- func (pA *TK) CompareBytes(buf1 []byte, buf2 []byte, limitA ...int) [][]int
- func (pA *TK) CompareTimeString(str1A, str2A, formatA string) (int, error)
- func (pA *TK) Compress(dataA interface{}, argsA ...interface{}) interface{}
- func (pA *TK) CompressText(textA string) string
- func (pA *TK) ConnectPop3(addrA string, userNameA string, passwordA string, optsA ...string) (*Pop3Client, error)
- func (pA *TK) Contains(strA string, subStrA string) bool
- func (pA *TK) ContainsIgnoreCase(strA string, subStrA string) bool
- func (pA *TK) ContainsIn(strA string, subStrsA ...string) bool
- func (pA *TK) ContainsInStringList(strA string, strListA []string) bool
- func (pA *TK) ConvertStringToUTF8(srcA string, srcEncA string) string
- func (pA *TK) ConvertToGB18030(srcA string) string
- func (pA *TK) ConvertToGB18030Bytes(srcA string) []byte
- func (pA *TK) ConvertToUTF8(srcA []byte, srcEncA string) string
- func (pA *TK) CopyFile(src, dst string, optsA ...string) error
- func (pA *TK) CreateFile(filePathT string, optsA ...string) error
- func (pA *TK) CreateSimpleEvent(typeA string, valueA string) *SimpleEvent
- func (pA *TK) CreateString(strA string, errA string) *TXString
- func (pA *TK) CreateStringEmpty() *TXString
- func (pA *TK) CreateStringError(errA string) *TXString
- func (pA *TK) CreateStringErrorF(formatA string, argsA ...interface{}) *TXString
- func (pA *TK) CreateStringErrorFromTXError(errA string) *TXString
- func (pA *TK) CreateStringSimple(strA string) *TXString
- func (pA *TK) CreateStringSuccess() *TXString
- func (pA *TK) CreateStringWithObject(strA string, objA interface{}) *TXString
- func (pA *TK) CreateTXCollection(sizeA int) *TXCollection
- func (pA *TK) CreateTempFile(dirA string, patternA string, optsA ...string) (string, error)
- func (pA *TK) DataToBytes(dataA interface{}, optsA ...string) interface{}
- func (pA *TK) DealRef(refA *interface{}, cmdA string, argsA ...interface{}) interface{}
- func (pA *TK) DealString(strA string, optsA ...string) string
- func (p *TK) DecodeBytesFromImage(imageA image.Image, optsA ...string) []byte
- func (pA *TK) DecodeFromBase64(strA string) ([]byte, error)
- func (pA *TK) DecodeHTML(strA string) string
- func (pA *TK) DecodeStringCustom(s string, paddingsA ...byte) string
- func (pA *TK) DecodeStringSimple(s string) string
- func (pA *TK) DecodeStringUnderline(s string) string
- func (pA *TK) DecryptDataByTXDEE(srcDataA []byte, codeA string) []byte
- func (pA *TK) DecryptDataByTXDEF(srcDataA []byte, codeA ...string) []byte
- func (pA *TK) DecryptFileByTXDEF(fileNameA, codeA, outputFileA string) error
- func (pA *TK) DecryptFileByTXDEFS(fileNameA, codeA, outputFileA string) string
- func (pA *TK) DecryptFileByTXDEFStream(fileNameA, codeA, outputFileA string) error
- func (pA *TK) DecryptFileByTXDEFStreamS(fileNameA, codeA, outputFileA string) string
- func (pA *TK) DecryptStreamByTXDEF(readerA io.Reader, codeA string, writerA io.Writer) error
- func (pA *TK) DecryptStringByTXDEE(strA, codeA string) string
- func (pA *TK) DecryptStringByTXDEF(strA string, codeA ...string) string
- func (pA *TK) DecryptStringByTXTE(strA string, codeA string) string
- func (pA *TK) DeepClone(original interface{}) (copy interface{})
- func (pA *TK) DeepCopyFromTo(original, copy interface{}) error
- func (pA *TK) DeleteItemInArray(aryA []interface{}, idxA int) []interface{}
- func (pA *TK) DeleteItemInFloat64Array(aryA []float64, idxA int64) []float64
- func (pA *TK) DeleteItemInInt64Array(aryA []int64, idxA int64) []int64
- func (pA *TK) DeleteItemInIntArray(aryA []int, idxA int) []int
- func (pA *TK) DeleteItemInStringArray(aryA []string, idxA int) []string
- func (pA *TK) DeleteVar(nameA string)
- func (pA *TK) DialPop3(addr string) (c *Pop3Client, err error)
- func (pA *TK) DialPop3TLS(addr string) (c *Pop3Client, err error)
- func (pA *TK) DocxToText(filePathA string, optsA ...string) interface{}
- func (pA *TK) DownloadBytes(urlA string) ([]byte, error)
- func (pA *TK) DownloadBytesWithProgress(urlA string, funcA func(interface{}) interface{}) ([]byte, error)
- func (pA *TK) DownloadFile(urlA, dirA, fileNameA string, argsA ...string) string
- func (pA *TK) DownloadFileWithProgress(urlA, dirA, fileNameA string, funcA func(interface{}) interface{}, ...) string
- func (pA *TK) DownloadPage(urlA string, originalEncodingA string, postDataA url.Values, ...) string
- func (pA *TK) DownloadPageByMap(urlA string, originalEncodingA string, postDataA map[string]string, ...) string
- func (pA *TK) DownloadPageUTF8(urlA string, postDataA url.Values, customHeaders string, ...) string
- func (pA *TK) DownloadWebBytes(urlA string, postDataA map[string]string, customHeadersA map[string]string, ...) ([]byte, map[string]string, error)
- func (pA *TK) DownloadWebPage(urlA string, postDataA map[string]string, customHeadersA map[string]string, ...) string
- func (pA *TK) DownloadWebPageX(urlA string, optsA ...interface{}) string
- func (pA *TK) Dump(objsA ...interface{})
- func (pA *TK) Dumpf(formatA string, objsA ...interface{})
- func (p *TK) EncodeBytesInImage(contentA []byte, imageA image.Image, optsA ...string) interface{}
- func (pA *TK) EncodeHTML(strA string) string
- func (pA *TK) EncodeStringCustom(strA string, paddingA byte) string
- func (pA *TK) EncodeStringCustomEx(strA string, paddingsA ...byte) string
- func (pA *TK) EncodeStringSimple(strA string) string
- func (pA *TK) EncodeStringUnderline(strA string) string
- func (pA *TK) EncodeToBase64(bufA []byte) string
- func (pA *TK) EncodeToXMLString(strA string) string
- func (pA *TK) EncryptDataByTXDEE(srcDataA []byte, codeA string) []byte
- func (pA *TK) EncryptDataByTXDEF(srcDataA []byte, codeA ...string) []byte
- func (pA *TK) EncryptFileByTXDEF(fileNameA, codeA, outputFileA string) error
- func (pA *TK) EncryptFileByTXDEFS(fileNameA, codeA, outputFileA string) string
- func (pA *TK) EncryptFileByTXDEFStream(fileNameA, codeA, outputFileA string) error
- func (pA *TK) EncryptFileByTXDEFStreamS(fileNameA, codeA, outputFileA string) string
- func (pA *TK) EncryptFileByTXDEFWithHeader(fileNameA, codeA, outputFileA string) error
- func (pA *TK) EncryptStreamByTXDEF(readerA io.Reader, codeA string, writerA io.Writer) error
- func (pA *TK) EncryptStringByTXDEE(strA, codeA string) string
- func (pA *TK) EncryptStringByTXDEF(strA string, codeA ...string) string
- func (pA *TK) EncryptStringByTXTE(strA string, codeA string) string
- func (pA *TK) EndsWith(strA string, subStrA ...string) bool
- func (pA *TK) EndsWithIgnoreCase(strA string, subStrA string) bool
- func (pA *TK) EnsureBasePath(nameA string) (string, error)
- func (pA *TK) EnsureBasePathInHome(nameA string) string
- func (pA *TK) EnsureMakeDirs(pathA string) string
- func (pA *TK) EnsureMakeDirsE(pathA string) error
- func (pA *TK) EnsureValidFileName(fileNameA string) string
- func (pA *TK) EnsureValidFileNameX(fileNameA string) string
- func (pA *TK) ErrStr(errStrA string) string
- func (pA *TK) ErrStrF(formatA string, argsA ...interface{}) string
- func (pA *TK) ErrStrToErr(strA string) error
- func (pA *TK) ErrStrf(formatA string, argsA ...interface{}) string
- func (pA *TK) ErrToErrStr(errA error) string
- func (pA *TK) ErrToStr(errA error) string
- func (pA *TK) ErrToStrF(formatA string, errA error) string
- func (pA *TK) Errf(formatA string, argsA ...interface{}) error
- func (pA *TK) ErrorStringToError(strA string) error
- func (pA *TK) ErrorToEmptyString(vA interface{}) string
- func (pA *TK) ErrorToString(errA error) string
- func (pA *TK) Exit(c ...int)
- func (pA *TK) FatalErr(prefixA string, errA error)
- func (pA *TK) FatalErrf(formatA string, errA error)
- func (pA *TK) Fatalf(formatA string, argsA ...interface{})
- func (pA *TK) FatalfByCondition(ignoreA bool, formatA string, argsA ...interface{})
- func (pA *TK) FindFirstDiffIndex(strA string, str2A string) int
- func (pA *TK) FindSamePrefix(strA, str2A string) string
- func (pA *TK) FindSubStringAll(strA string, subStrA string) [][]int
- func (pA *TK) FlattenXML(xmlA string, nodeA string) string
- func (pA *TK) FlexEval(exprA string, varsA ...interface{}) interface{}
- func (pA *TK) FlexEvalMap(exprA string, varsA ...interface{}) interface{}
- func (pA *TK) Float32ArrayToFloat64Array(aryA []float32) []float64
- func (pA *TK) Float64ToStr(floatA float64) string
- func (pA *TK) Floor(nA interface{}) interface{}
- func (pA *TK) FormToMap(formA url.Values) map[string]string
- func (pA *TK) FormatJson(jsonA string, optsA ...string) string
- func (pA *TK) FormatSQLValue(strA string) string
- func (pA *TK) FormatStringSliceSlice(sliceA [][]string, sepA string, lineSepA string) string
- func (pA *TK) FormatTime(timeA time.Time, formatA ...string) string
- func (pA *TK) Fpl(wA io.Writer, formatA string, argsA ...interface{})
- func (pA *TK) Fpr(wA io.Writer, formatA string, argsA ...interface{})
- func (pA *TK) FromBase64(strA string) interface{}
- func (pA *TK) FromJSON(jsonA string) (interface{}, error)
- func (pA *TK) FromJSONWithDefault(jsonA string, defaultA ...interface{}) interface{}
- func (pA *TK) FromJSONX(vA interface{}) interface{}
- func (pA *TK) FromXML(xmlA string) (interface{}, error)
- func (pA *TK) FromXMLWithDefault(xmlA string, defaultA interface{}) interface{}
- func (pA *TK) FromXMLX(xmlA string, nodeA ...interface{}) interface{}
- func (pA *TK) GenerateErrorString(errStrA string) string
- func (pA *TK) GenerateErrorStringF(formatA string, argsA ...interface{}) string
- func (pA *TK) GenerateErrorStringFTX(formatA string, argsA ...interface{}) *TXString
- func (pA *TK) GenerateErrorStringTX(errStrA string) *TXString
- func (pA *TK) GenerateFileListInDir(dirA string, patternA string, verboseA bool) []string
- func (pA *TK) GenerateFileListRecursively(dirA string, patternA string, verboseA bool) []string
- func (pA *TK) GenerateFileListRecursivelyWithExclusive(dirA string, patternA string, exclusivePatternA string, verboseA bool) []string
- func (pA *TK) GenerateJSONPResponse(statusA string, valueA string, reqA *http.Request, argsA ...string) string
- func (pA *TK) GenerateJSONPResponseMix(statusA string, valueA string, reqA *http.Request, mapA map[string]string) string
- func (pA *TK) GenerateJSONPResponseWith2Object(statusA string, valueA string, objectA string, object2A string, ...) string
- func (pA *TK) GenerateJSONPResponseWith3Object(statusA string, valueA string, objectA string, object2A string, ...) string
- func (pA *TK) GenerateJSONPResponseWithMore(statusA string, valueA string, reqA *http.Request, argsA ...string) string
- func (pA *TK) GenerateJSONPResponseWithObject(statusA string, valueA string, objectA string, reqA *http.Request) string
- func (pA *TK) GenerateOtpCode(secretA string, optsA ...string) string
- func (pA *TK) GenerateQR(contentA string, optsA ...string) (barcode.Barcode, error)
- func (pA *TK) GenerateRandomFloats(sizeA int) []float64
- func (pA *TK) GenerateRandomString(minCharA, maxCharA int, ...) string
- func (pA *TK) GenerateRandomStringX(argsA ...string) string
- func (pA *TK) GenerateToken(appCodeA string, userIDA string, roleA string, optsA ...string) string
- func (pA *TK) GetANDResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetAddResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetAddResultForce(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetAddr(p interface{}) interface{}
- func (pA *TK) GetAddsResult(valuesA ...interface{}) (result interface{})
- func (pA *TK) GetAllOSParameters() []string
- func (pA *TK) GetAllParameters(argsA []string) []string
- func (pA *TK) GetAllSwitches(argsA []string) []string
- func (pA *TK) GetApplicationPath() string
- func (pA *TK) GetArrayItem(aryA interface{}, idxA int, defaultA ...interface{}) interface{}
- func (pA *TK) GetArraySlice(aryA interface{}, startA int, endA int, defaultA ...interface{}) interface{}
- func (pA *TK) GetAvailableFileName(fileNameA string) string
- func (pA *TK) GetBitANDNOTResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetBitANDResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetBitNotResult(nA interface{}) interface{}
- func (pA *TK) GetBitORResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetBitXORResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetChar() interface{}
- func (pA *TK) GetChar2() interface{}
- func (pA *TK) GetClipText() string
- func (pA *TK) GetClipboardTextDefaultEmpty() string
- func (pA *TK) GetClipboardTextWithDefault(defaultA string) string
- func (pA *TK) GetCurrentDir() string
- func (pA *TK) GetCurrentThreadID() string
- func (pA *TK) GetDBConnection(driverA string, pathT string) *sql.DB
- func (pA *TK) GetDBResultArray(dbA *sql.DB, sqlA string) ([][]string, error)
- func (pA *TK) GetDBResultString(dbA *sql.DB, sqlA string) (string, error)
- func (pA *TK) GetDBRowCount(dbA *sql.DB, sqlA string) (int, error)
- func (pA *TK) GetDBRowCountCompact(dbA *sql.DB, sqlA string) int
- func (pA *TK) GetDebug() string
- func (pA *TK) GetDirOfFilePath(pathA string) string
- func (pA *TK) GetDivResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetEQResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetEncZipReader(filePathA string) (*zipx.ReadCloser, error)
- func (pA *TK) GetEncZipWriter(wA io.Writer) *zipx.Writer
- func (pA *TK) GetEnv(keyA string) string
- func (pA *TK) GetErrStr(errStrA string) string
- func (pA *TK) GetErrStrX(vA interface{}) string
- func (pA *TK) GetErrorString(errStrA string) string
- func (pA *TK) GetErrorStringSafely(errStrA string) string
- func (pA *TK) GetExecutablePath() string
- func (pA *TK) GetFileAbs(fileA string) string
- func (pA *TK) GetFileExt(filePathA string) string
- func (pA *TK) GetFileInfo(filePathA string) (map[string]string, error)
- func (pA *TK) GetFileList(dirA string, argsA ...string) []map[string]string
- func (pA *TK) GetFilePathSeperator() string
- func (pA *TK) GetFileSize(filePathA string) (int64, error)
- func (pA *TK) GetFileSizeCompact(filePathA string) int64
- func (pA *TK) GetFileVar(fileNameA string) interface{}
- func (pA *TK) GetFlexRef(dataA interface{}, typeA string, keyA string, indexA int) *FlexRef
- func (pA *TK) GetFormValueWithDefaultValue(reqA *http.Request, keyA string, defaultA ...string) string
- func (pA *TK) GetGETResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetGTResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetGlobalEnvList() []string
- func (pA *TK) GetGlobalEnvString() string
- func (pA *TK) GetHomeDir() string
- func (pA *TK) GetInput(argsA ...string) string
- func (pA *TK) GetInputBufferedScan() string
- func (pA *TK) GetInputPasswordf(formatA string, aA ...interface{}) string
- func (pA *TK) GetInputf(formatA string, aA ...interface{}) string
- func (pA *TK) GetJSONNode(jsonA string, pathA ...interface{}) interface{}
- func (pA *TK) GetJSONNodeAny(jsonA string, pathA ...interface{}) jsoniter.Any
- func (pA *TK) GetJSONNodeString(jsonA string, pathA string) string
- func (pA *TK) GetJSONNodeStrings(jsonA string, pathA string) interface{}
- func (pA *TK) GetJSONSubNode(jsonNodeA jsoniter.Any, pathA ...interface{}) interface{}
- func (pA *TK) GetJSONSubNodeAny(jsonNodeA jsoniter.Any, pathA ...interface{}) jsoniter.Any
- func (pA *TK) GetLETResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetLTResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetLastComponentBySeparator(strA string, sepA ...string) string
- func (pA *TK) GetLastComponentOfFilePath(pathA string, sepA ...string) string
- func (pA *TK) GetLastComponentOfUrl(urlA string) string
- func (pA *TK) GetLinesFromFile(fileNameA string, startA int, endA int, optionsA ...string) ([]string, error)
- func (pA *TK) GetLogicalNotResult(nA interface{}) interface{}
- func (pA *TK) GetLoginAuth(username, password string) smtp.Auth
- func (pA *TK) GetMSIStringWithDefault(mapA map[string]interface{}, keyA string, defaultA string) (result string)
- func (pA *TK) GetMSSArrayFromXML(xmlA string, nodeA string) ([]map[string]string, error)
- func (pA *TK) GetMSSFromXML(xmlA string, nodeA string) (map[string]string, error)
- func (pA *TK) GetMapItem(mapA interface{}, keyA interface{}, defaultA ...interface{}) interface{}
- func (pA *TK) GetMapKeys(vA interface{}, argsA ...string) interface{}
- func (pA *TK) GetMapRef(mapA interface{}, keyA string) *MapRef
- func (pA *TK) GetMimeTypeByExt(extensionA string) string
- func (pA *TK) GetMinusResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetModResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetMultiplyResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetNEQResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetNegativeResult(nA interface{}) interface{}
- func (pA *TK) GetNextMonthStart(timeStrA string) string
- func (pA *TK) GetNodeStringFromXML(xmlA string, nodeA string) (string, error)
- func (pA *TK) GetNodesStringFromXML(xmlA string, nodeA string) interface{}
- func (pA *TK) GetNowDateString() string
- func (pA *TK) GetNowDateStringFormal() string
- func (pA *TK) GetNowMinutesInDay() int
- func (pA *TK) GetNowTick() int
- func (pA *TK) GetNowTickNano() int
- func (pA *TK) GetNowTimeOnlyStringBeijing() string
- func (pA *TK) GetNowTimeString() string
- func (pA *TK) GetNowTimeStringFormal() string
- func (pA *TK) GetNowTimeStringFormat(formatA ...string) string
- func (pA *TK) GetNowTimeStringHourMinute() string
- func (pA *TK) GetORResult(n1A interface{}, n2A interface{}) (result interface{})
- func (pA *TK) GetOSArch() string
- func (pA *TK) GetOSArgs() []string
- func (pA *TK) GetOSArgsShort() []string
- func (pA *TK) GetOSName() string
- func (pA *TK) GetParam(argsA []string, optsA ...interface{}) string
- func (pA *TK) GetParamI(argsA []interface{}, idxA int, defaultA ...string) string
- func (pA *TK) GetParameter(argsA []string, idxA int) string
- func (pA *TK) GetParameterByIndexWithDefaultValue(argsA []string, idxA int, defaultA string) string
- func (pA *TK) GetPlainAuth(identity, username, password, host string) smtp.Auth
- func (pA *TK) GetPointer(p interface{}) interface{}
- func (pA *TK) GetRandomByte() byte
- func (pA *TK) GetRandomFloat() float64
- func (pA *TK) GetRandomInt64InRange(minA int64, maxA int64) int64
- func (pA *TK) GetRandomInt64LessThan(maxA int64) int64
- func (pA *TK) GetRandomIntInRange(minA int, maxA int) int
- func (pA *TK) GetRandomIntLessThan(maxA int) int
- func (pA *TK) GetRandomItem(aryA []interface{}) interface{}
- func (pA *TK) GetRandomStringItem(aryA []string) string
- func (pA *TK) GetRandomSubDualList(listA [][]string, countA int) [][]string
- func (pA *TK) GetRandomizeInt64ArrayCopy(aryA []int64) []int64
- func (pA *TK) GetRandomizeIntArrayCopy(aryA []int) []int
- func (pA *TK) GetRandomizeStringArrayCopy(aryA []string) []string
- func (pA *TK) GetRandomizeSubStringArrayCopy(aryA []string, subCountA int) []string
- func (pA *TK) GetRef(p interface{}) interface{}
- func (pA *TK) GetRefValue(ppA interface{}) (result interface{}, err error)
- func (pA *TK) GetRefValueQuick(ppA interface{}) (result interface{})
- func (pA *TK) GetRuntimeStack() string
- func (pA *TK) GetSeq() int
- func (pA *TK) GetSliceMaxLen(strA string, maxBytesA int) string
- func (pA *TK) GetStringSliceFilled(filledString string, countA int) []string
- func (pA *TK) GetSuccessValue(strA string) string
- func (pA *TK) GetSwitch(argsA []string, switchStrA string, defaultA ...string) string
- func (pA *TK) GetSwitchI(argsA []interface{}, switchStrA string, defaultA ...string) string
- func (pA *TK) GetSwitchWithDefaultFloatValue(argsA []string, switchStrA string, defaultA ...float64) float64
- func (pA *TK) GetSwitchWithDefaultInt64Value(argsA []string, switchStrA string, defaultA int64) int64
- func (pA *TK) GetSwitchWithDefaultIntValue(argsA []string, switchStrA string, defaultA ...int) int
- func (pA *TK) GetSwitchWithDefaultValue(argsA []string, switchStrA string, defaultA string) string
- func (pA *TK) GetSystemEndian() binary.ByteOrder
- func (pA *TK) GetSystemEndianInt() int
- func (pA *TK) GetTempDir() string
- func (pA *TK) GetTextFromFileOrClipboard(fileT string, defaultA string) string
- func (pA *TK) GetTextSimilarity(str1A string, str2A string, methodA ...int) float64
- func (pA *TK) GetTimeFromUnixTimeStamp(timeStampA int64) time.Time
- func (pA *TK) GetTimeFromUnixTimeStampMid(timeStampStrA string) time.Time
- func (pA *TK) GetTimeStamp(timeA time.Time) string
- func (pA *TK) GetTimeStampMid(timeA time.Time) string
- func (pA *TK) GetTimeStampNano(timeA time.Time) string
- func (pA *TK) GetTimeStampNanoInt(timeA time.Time) int
- func (pA *TK) GetTimeStringDiffMS(str1A, str2A, formatA string, defaultA int64) int64
- func (pA *TK) GetUUID() string
- func (pA *TK) GetUUID1() string
- func (pA *TK) GetUUID4() string
- func (pA *TK) GetUserInput(promptA string) string
- func (pA *TK) GetValue(p interface{}) interface{}
- func (pA *TK) GetValueOfMSS(mapA map[string]string, keyA string, defaultA string) string
- func (pA *TK) GetVar(nameA string) interface{}
- func (pA *TK) GetVarEx(nameA string, argsA ...interface{}) interface{}
- func (pA *TK) GetVersion() string
- func (pA *TK) GetWeb(urlA string, optsA ...interface{}) interface{}
- func (pA *TK) GetWebHead(urlA string, optsA ...interface{}) interface{}
- func (pA *TK) GetWebResponse(urlA string, optsA ...interface{}) interface{}
- func (pA *TK) GetWebResponseBody(urlA string, optsA ...interface{}) interface{}
- func (pA *TK) GetXMLNode(xmlA string, labelsA ...string) (*xmlx.Node, error)
- func (pA *TK) GetXmlDocument(xmlA string) interface{}
- func (pA *TK) GetZipArchiver(argsA ...string) *archiver.Zip
- func (pA *TK) HTMLToText(htmlA string, optionsA ...string) (result string)
- func (pA *TK) HasGlobalEnv(vA string) bool
- func (pA *TK) HexToBytes(strA string) []byte
- func (pA *TK) HexToColor(strA string, optsA ...string) color.Color
- func (pA *TK) HexToInt(strA string, optsA ...string) int
- func (pA *TK) HexToStr(strA string) string
- func (pA *TK) HexToUInt(strA string, optsA ...string) uint64
- func (pA *TK) HttpRequest(urlA string, methodA string, originalEncodingA string, postDataA url.Values, ...) string
- func (pA *TK) IfFileExists(fileNameA string) bool
- func (pA *TK) IfFormValueExists(reqA *http.Request, keyA string) bool
- func (pA *TK) IfSwitchExists(argsA []string, switchStrA string) bool
- func (pA *TK) IfSwitchExistsWholeI(argsA []interface{}, switchStrA string) bool
- func (pA *TK) IfThenElse(condA bool, thenA interface{}, elseA interface{}) interface{}
- func (pA *TK) ImageToAscii(imageA image.Image, widthA int, heightA int) interface{}
- func (pA *TK) InStrings(strA string, argsA ...string) bool
- func (pA *TK) InStringsTrim(strA string, argsA ...string) bool
- func (pA *TK) IndexInStringList(strA string, strListA []string) int
- func (pA *TK) IndexInStringListFromEnd(strA string, strListA []string) int
- func (pA *TK) Int64ArrayToFloat64Array(aryA []int64) []float64
- func (pA *TK) Int64ToStr(intA int64) string
- func (pA *TK) IntToKMGT(sizeA interface{}, formatA ...interface{}) string
- func (pA *TK) IntToStr(intA int) string
- func (pA *TK) IntToStrX(n interface{}, defaultA ...string) string
- func (pA *TK) IntToWYZ(sizeA int, formatA string) string
- func (pA *TK) InterfaceToStringArray(aryT []interface{}) []string
- func (pA *TK) IsDataEncryptedByTXDEF(srcDataA []byte) bool
- func (pA *TK) IsDirectory(dirNameA string) bool
- func (pA *TK) IsEmptyTrim(strA string) bool
- func (pA *TK) IsErrStr(errStrA string) bool
- func (pA *TK) IsErrStrX(errStrA interface{}) bool
- func (pA *TK) IsErrX(vA interface{}) bool
- func (pA *TK) IsError(vA interface{}) bool
- func (pA *TK) IsErrorString(errStrA string) bool
- func (pA *TK) IsFile(fileNameA string) bool
- func (pA *TK) IsFloat64NearlyEqual(a, b float64) bool
- func (pA *TK) IsHttps(reqA *http.Request) bool
- func (pA *TK) IsNil(v interface{}) bool
- func (pA *TK) IsNilOrEmpty(v interface{}) bool
- func (pA *TK) IsNilOrErrX(v interface{}) bool
- func (pA *TK) IsStringEncryptedByTXDEF(strA string) bool
- func (pA *TK) IsUndefined(vA interface{}) bool
- func (pA *TK) IsValidEmail(strA string) bool
- func (pA *TK) IsYesterday(dateStrA string, formatA string) bool
- func (pA *TK) JSONResponseToHTML(jsonA string) string
- func (pA *TK) JSONToMapStringFloat64Array(objStrA string) map[string][]float64
- func (pA *TK) JSONToMapStringString(objStrA string) map[string]string
- func (pA *TK) JSONToMapStringStringArray(objStrA string) []map[string]string
- func (pA *TK) JSONToObject(objStrA string) interface{}
- func (pA *TK) JSONToObjectE(objStrA string) (interface{}, error)
- func (pA *TK) JSONToStringArray(objStrA string) []string
- func (pA *TK) JoinDualList(listA [][]string, sepItemA, sepInItemA string, withLineNumberA bool) string
- func (pA *TK) JoinLines(strListA []string, sepA ...string) string
- func (pA *TK) JoinLinesBySeparator(strListA []string, sepA ...string) string
- func (pA *TK) JoinList(aryA interface{}, sepA string, defaultA ...string) string
- func (pA *TK) JoinPath(elemA ...string) string
- func (pA *TK) JoinURL(urlBaseA string, urlNextA string) string
- func (pA *TK) KindOfValueReflect(vA interface{}) string
- func (pA *TK) Len(vA interface{}) int
- func (pA *TK) Len64(aryA []string) int64
- func (pA *TK) LessI(v1, v2 interface{}, optsA ...interface{}) bool
- func (pA *TK) LimitPrecision(nA interface{}, digitA ...int) error
- func (pA *TK) LimitString(strA string, lenA int, optsA ...string) string
- func (pA *TK) ListToSQLList(vA interface{}) string
- func (pA *TK) Listen(netA string, addrA string) interface{}
- func (pA *TK) LoadBytes(fileNameA string, numA ...int) []byte
- func (pA *TK) LoadBytesFromFile(fileNameA string, numA ...int) interface{}
- func (pA *TK) LoadBytesFromFileE(fileNameA string, numA ...int) ([]byte, error)
- func (pA *TK) LoadDualLineList(fileNameA string) ([][]string, string)
- func (pA *TK) LoadDualLineListFromString(strA string) [][]string
- func (pA *TK) LoadImageFromBytes(dataA []byte, argsA ...string) interface{}
- func (pA *TK) LoadImageFromFile(pathA string, argsA ...string) interface{}
- func (pA *TK) LoadJSONFromFile(filePathA string, bufA interface{}) error
- func (pA *TK) LoadJSONFromString(strA string, bufA interface{}) error
- func (pA *TK) LoadJSONMapStringFloat64ArrayFromFile(fileNameA string) map[string][]float64
- func (pA *TK) LoadMSSFromJSONFile(filePathA string) (map[string]string, error)
- func (pA *TK) LoadSimpleMapFromDir(dirA string) map[string]string
- func (pA *TK) LoadSimpleMapFromFile(fileNameA string) map[string]string
- func (pA *TK) LoadSimpleMapFromFileE(fileNameA string) (map[string]string, error)
- func (pA *TK) LoadSimpleMapFromString(strA string) map[string]string
- func (pA *TK) LoadSimpleMapFromStringE(strA string) (map[string]string, error)
- func (pA *TK) LoadStringFromFile(fileNameA string) string
- func (pA *TK) LoadStringFromFileB(fileNameA string) (string, bool)
- func (pA *TK) LoadStringFromFileE(fileNameA string) (string, error)
- func (pA *TK) LoadStringFromFileWithDefault(fileNameA string, defaultA string) string
- func (pA *TK) LoadStringList(fileNameA string) ([]string, string)
- func (pA *TK) LoadStringListAsMap(fileNameA string) map[string]int
- func (pA *TK) LoadStringListAsMapRemoveEmpty(fileNameA string) map[string]int
- func (pA *TK) LoadStringListBuffered(fileNameA string, trimA bool, skipEmptyA bool) ([]string, error)
- func (pA *TK) LoadStringListFromFile(fileNameA string) ([]string, error)
- func (pA *TK) LoadStringListRemoveEmpty(fileNameA string) []string
- func (pA *TK) LoadStringTX(fileNameA string) *TXString
- func (pA *TK) LoadText(fileNameA string) interface{}
- func (pA *TK) LockN(idxA ...int)
- func (pA *TK) LogWithTime(formatA string, argsA ...interface{})
- func (pA *TK) LogWithTimeCompact(formatA string, argsA ...interface{})
- func (pA *TK) Ls(dirA string) []string
- func (pA *TK) Lsr(dirA string) []string
- func (pA *TK) MD5Encrypt(strA string) string
- func (pA *TK) MD5EncryptToBytes(strA string) []byte
- func (pA *TK) MSI2MSS(vA map[string]interface{}) map[string]string
- func (pA *TK) MSS2MSI(vA map[string]string) map[string]interface{}
- func (pA *TK) MSSFromJSON(jsonA string) (map[string]string, error)
- func (pA *TK) MapToPostData(postDataA map[string]string) url.Values
- func (pA *TK) MapToPostDataI(postDataA map[string]interface{}) url.Values
- func (pA *TK) Max(nA ...interface{}) interface{}
- func (pA *TK) Min(nA ...interface{}) interface{}
- func (pA *TK) NewAnyQueue(capA ...int) *AnyQueue
- func (pA *TK) NewByteQueue(capA ...int) *ByteQueue
- func (pA *TK) NewCompactIterator(dataA interface{}, argsA ...interface{}) Iterator
- func (pA *TK) NewImage(argsA ...string) image.Image
- func (pA *TK) NewIntSumBuffer(sizeA int) *IntSumBuffer
- func (pA *TK) NewObject(argsA ...interface{}) interface{}
- func (pA *TK) NewOrderedMap() *OrderedMap
- func (pA *TK) NewPop3Client(conn net.Conn) (*Pop3Client, error)
- func (pA *TK) NewQuickObject(argsA ...interface{}) *QuickObject
- func (pA *TK) NewRandomGenerator() *RandomX
- func (pA *TK) NewSSHClient(hostA string, portA interface{}, userA string, passA string) (*goph.Client, error)
- func (pA *TK) NewSeq() *Seq
- func (pA *TK) NewSimpleFlexObject(argsA ...interface{}) *SimpleFlexObject
- func (pA *TK) NewSimpleFlexObjectSimple() *SimpleFlexObject
- func (pA *TK) NewSimpleFlexObjectWithString(strA string, mustA bool) *SimpleFlexObject
- func (pA *TK) NewSimpleFlexObjectWithStringComplex(strA string, mustA bool) *SimpleFlexObject
- func (pA *TK) NewSimpleStack(argsA ...interface{}) *SimpleStack
- func (pA *TK) NewStaticWebHandler(pathA string) interface{}
- func (pA *TK) NewStringRing(sizeA ...int) *StringRing
- func (pA *TK) NewSyncMap() *SyncMap
- func (pA *TK) NewSyncQueue(sizeA ...int) *SyncQueue
- func (pA *TK) NewSyncStack(argsA ...interface{}) *SyncStack
- func (pA *TK) NewTK() *TK
- func (pA *TK) NewTXResult(statusA string, valueA ...string) *TXResult
- func (pA *TK) NewTXResultFromJSON(jsonA string) interface{}
- func (pA *TK) NewTXResultFromJSONX(jsonA string) *TXResult
- func (pA *TK) NewTXResultFromWrap(strA string) interface{}
- func (pA *TK) NewTXResultFromWrapX(strA string) *TXResult
- func (pA *TK) NewXMLFromAny(input interface{}) *StructAny
- func (pA *TK) NewXMLFromMSI(input map[string]interface{}) *StructMap
- func (pA *TK) NilEmptyStringNoFloat(vA interface{}) string
- func (pA *TK) NilToEmptyStr(vA interface{}) string
- func (pA *TK) NowToFileName() string
- func (pA *TK) NowToStrUTC(formatA string) string
- func (pA *TK) ObjectToJSON(objA interface{}) string
- func (pA *TK) ObjectToJSONIndent(objA interface{}) string
- func (pA *TK) ObjectsToS(aryA ...interface{}) []string
- func (pA *TK) OctetToInt(strA string, defaultA ...int) int
- func (pA *TK) OpenFile(filePathT string, optsA ...string) interface{}
- func (pA *TK) PadString(strA string, lenA int, optsA ...string) string
- func (pA *TK) ParseCommandLine(commandA string) ([]string, error)
- func (pA *TK) ParseCommandLineCompact(commandA string) []string
- func (pA *TK) ParseHexColor(x string) (r, g, b, a int)
- func (pA *TK) Pass()
- func (pA *TK) PathToURI(path string) string
- func (pA *TK) PickRandomItem(aryA []interface{}) interface{}
- func (pA *TK) Pkcs7Padding(ciphertext []byte, blockSize int) []byte
- func (pA *TK) Pl(formatA string, argsA ...interface{})
- func (pA *TK) PlAndExit(formatA string, argsA ...interface{})
- func (pA *TK) PlErr(errA error)
- func (pA *TK) PlErrAndExit(errA error)
- func (pA *TK) PlErrSimple(formatA string, argsA ...interface{})
- func (pA *TK) PlErrSimpleAndExit(formatA string, argsA ...interface{})
- func (pA *TK) PlErrString(strA string)
- func (pA *TK) PlErrWithPrefix(prefixA string, errA error)
- func (pA *TK) PlErrX(errA interface{})
- func (pA *TK) PlNow(formatA string, argsA ...interface{})
- func (pA *TK) PlSimpleErrorString(strA string)
- func (pA *TK) PlTXErr(strA string)
- func (pA *TK) PlVerbose(verboseA bool, formatA string, argsA ...interface{})
- func (pA *TK) Pln(a ...interface{})
- func (pA *TK) Plo(vA ...interface{})
- func (pA *TK) Plos(vA ...interface{})
- func (pA *TK) Plosr(vA ...interface{})
- func (pA *TK) Plt(vA ...interface{})
- func (pA *TK) Plv(argsA ...interface{})
- func (pA *TK) PlvWithError(vA interface{}, errStrA string)
- func (pA *TK) Plvs(sepA string, argsA ...interface{})
- func (pA *TK) Plvsr(argsA ...interface{})
- func (pA *TK) Plvx(argsA interface{})
- func (pA *TK) PostRequest(urlA, reqBodyA string, timeoutSecsA time.Duration) (string, error)
- func (pA *TK) PostRequestBytesWithCookieX(urlA string, reqBodyA []byte, customHeadersA string, jarA *cookiejar.Jar, ...) ([]byte, *cookiejar.Jar, error)
- func (pA *TK) PostRequestBytesWithMSSHeaderX(urlA string, reqBodyA []byte, customHeadersA map[string]string, ...) ([]byte, error)
- func (pA *TK) PostRequestBytesX(urlA string, reqBodyA []byte, customHeadersA string, ...) ([]byte, error)
- func (pA *TK) PostRequestX(urlA, reqBodyA string, customHeadersA string, timeoutSecsA time.Duration, ...) (string, error)
- func (pA *TK) Pr(argsA ...interface{})
- func (pA *TK) Prf(formatA string, argsA ...interface{}) string
- func (pA *TK) Printf(format string, a ...interface{})
- func (pA *TK) Printfln(format string, a ...interface{})
- func (pA *TK) Prl(a ...interface{})
- func (pA *TK) ProcessHtmlTemplate(templateNameA string, baseDirA string, dataA interface{}, optsA ...string) interface{}
- func (pA *TK) PutRequestX(urlA, reqBodyA string, customHeadersA string, timeoutSecsA time.Duration, ...) (string, error)
- func (pA *TK) RLockN(idxA ...int)
- func (pA *TK) RUnlockN(idxA ...int)
- func (pA *TK) Randomize(seedA ...int)
- func (pA *TK) ReadAllString(vA interface{}) string
- func (pA *TK) ReadLineFromBufioReader(readerA *bufio.Reader) (string, bool, error)
- func (pA *TK) RecordsToMapArray(recA interface{}) []map[string]string
- func (pA *TK) RecordsToMapStringMap(recA interface{}, keyA string) interface{}
- func (pA *TK) RecordsToOrderedMapArray(recA interface{}) interface{}
- func (pA *TK) RecordsToOrderedMapStringMap(recA interface{}, keyA string) interface{}
- func (pA *TK) ReflectCallFuncCompact(vA interface{}, argsA ...interface{}) interface{}
- func (pA *TK) ReflectCallFuncQuick(vA interface{}, argsA ...interface{}) []interface{}
- func (pA *TK) ReflectCallMethod(vA interface{}, nameA string, argsA ...interface{}) (result interface{})
- func (pA *TK) ReflectCallMethodCompact(vA interface{}, nameA string, argsA ...interface{}) interface{}
- func (pA *TK) ReflectCallMethodQuick(vA interface{}, nameA string, argsA ...interface{}) []interface{}
- func (pA *TK) ReflectCallMethodSlice(vA interface{}, nameA string, argsA ...interface{}) (result interface{})
- func (pA *TK) ReflectGetMember(vA interface{}, argsA ...interface{}) (result interface{})
- func (pA *TK) ReflectGetMethod(vA interface{}, argsA ...interface{}) (result interface{})
- func (pA *TK) ReflectHasMethod(vA interface{}, nameA string) (result bool)
- func (pA *TK) RegContains(strA, patternA string) bool
- func (pA *TK) RegContainsIn(strA string, subStrsA ...string) bool
- func (pA *TK) RegContainsX(strA, patternA string) bool
- func (pA *TK) RegCount(strA, patternA string) int
- func (pA *TK) RegFindAll(strA, patternA string, groupA int) []string
- func (pA *TK) RegFindAllByGroupIndexX(strA, patternA string, groupA int) [][]int
- func (pA *TK) RegFindAllGroups(strA, patternA string) [][]string
- func (pA *TK) RegFindAllGroupsX(strA, patternA string) [][]string
- func (pA *TK) RegFindAllIndexX(strA, patternA string) [][]int
- func (pA *TK) RegFindAllX(strA, patternA string, groupA int) []string
- func (pA *TK) RegFindFirst(strA, patternA string, groupA int) string
- func (pA *TK) RegFindFirstGroupIndexX(strA, patternA string, groupA int) []int
- func (pA *TK) RegFindFirstGroupsIndexX(strA, patternA string) []int
- func (pA *TK) RegFindFirstGroupsX(strA, patternA string) []string
- func (pA *TK) RegFindFirstIndex(strA, patternA string) (int, int)
- func (pA *TK) RegFindFirstIndexX(strA, patternA string) (int, int)
- func (pA *TK) RegFindFirstTX(strA, patternA string, groupA int) *TXString
- func (pA *TK) RegFindFirstX(strA, patternA string, groupA int) string
- func (pA *TK) RegMatch(strA, patternA string) bool
- func (pA *TK) RegMatchX(strA, patternA string) bool
- func (pA *TK) RegQuote(textA string) string
- func (pA *TK) RegReplace(strA, patternA, replaceA string) string
- func (pA *TK) RegReplaceX(strA, patternA, replaceA string) string
- func (pA *TK) RegSplit(strA, patternA string, nA ...int) []string
- func (pA *TK) RegSplitX(strA, patternA string, nA ...int) []string
- func (pA *TK) RegStartsWith(strA, patternA string) bool
- func (pA *TK) RegStartsWithX(strA, patternA string) bool
- func (pA *TK) RemoveBOM(strA string) string
- func (pA *TK) RemoveDuplicateInDualLineList(listA [][]string) [][]string
- func (pA *TK) RemoveFile(filePathT string) error
- func (pA *TK) RemoveFileExt(filePathA string) string
- func (pA *TK) RemoveFirstSubString(strA string, subStrA string) string
- func (pA *TK) RemoveGlobalEnv(vA string)
- func (pA *TK) RemoveHtmlTags(strA string) string
- func (pA *TK) RemoveHtmlTagsX(strA string, optionsA ...string) string
- func (pA *TK) RemoveIntInArray(sliceA []int, idxA int) []int
- func (pA *TK) RemoveItemsInArray(aryA interface{}, startA int, endA int) interface{}
- func (pA *TK) RemoveLastSubString(strA string, subStrA string) string
- func (pA *TK) RemoveStringInArray(sliceA []string, idxA int) []string
- func (pA *TK) RenameFile(filePathT string, destFilePathT string, optsA ...string) error
- func (pA *TK) RenderMarkdown(markdownA string) string
- func (pA *TK) Replace(strA, findA, replaceA string) string
- func (pA *TK) ReplaceHtmlByMap(strA string, mapA map[string]string) string
- func (pA *TK) ReplaceLineEnds(strA string, replacementA string) string
- func (pA *TK) ReplacePatternsInDocxBytes(bytesA []byte, replacesA []string, optsA ...string) interface{}
- func (pA *TK) RequestX(urlA, methodA, reqBodyA string, customHeadersA string, ...) (string, error)
- func (pA *TK) ResetSeq(valueA ...int)
- func (pA *TK) ReshapeXML(xmlA string) string
- func (p *TK) ResizeImage(widthA, heightA int, img image.Image, interpA ...InterpolationFunction) image.Image
- func (pA *TK) ResizeImageQuick(imgA image.Image, newWidthA int, newHeightA int) image.Image
- func (p *TK) ResizeImageX(imgA image.Image, optsA ...string) image.Image
- func (pA *TK) RestoreLineEnds(strA string, replacementA string) string
- func (pA *TK) Resultf(statusA string, formatA string, argsA ...interface{}) *TXResult
- func (pA *TK) ReverseStringSlice(ss []string)
- func (pA *TK) Round(nA interface{}) interface{}
- func (pA *TK) RunWinFileWithSystemDefault(fileA string) string
- func (pA *TK) RuneLen(strA string) int
- func (pA *TK) SafelyGetFloat64ForKeyWithDefault(mapA map[string]string, keyA string, defaultA float64) float64
- func (pA *TK) SafelyGetIntForKeyWithDefault(mapA map[string]string, keyA string, defaultA int) int
- func (pA *TK) SafelyGetStringForKeyWithDefault(mapA map[string]string, keyA string, defaultA ...string) string
- func (pA *TK) SafelyGetStringInArray(aryA interface{}, idxA int, optionsA ...string) string
- func (pA *TK) SaveBytesToFile(bytesA []byte, fileA string) string
- func (pA *TK) SaveBytesToFileE(bytesA []byte, fileA string) error
- func (pA *TK) SaveDualLineList(listA [][]string, fileNameA string) string
- func (p *TK) SaveImageToBytes(imageA image.Image, formatA ...string) []byte
- func (p *TK) SaveImageToFile(imageA image.Image, filePathA string, formatA ...string) error
- func (pA *TK) SaveJSONIndentToFile(objA interface{}, filePathA string) error
- func (pA *TK) SaveJSONToFile(objA interface{}, filePathA string) error
- func (pA *TK) SaveMSSToJSONFile(mapA map[string]string, filePathA string) error
- func (pA *TK) SaveSimpleMapToFile(mapA map[string]string, fileA string) string
- func (pA *TK) SaveStringList(strListA []string, fileA string) string
- func (pA *TK) SaveStringListBuffered(strListA []string, fileA string, sepA string) string
- func (pA *TK) SaveStringListBufferedByRange(strListA []string, fileA string, sepA string, startA int, endA int) string
- func (pA *TK) SaveStringListWin(strListA []string, fileA string) string
- func (pA *TK) SaveStringToFile(strA string, fileA string) string
- func (pA *TK) SaveStringToFileE(strA string, fileA string) error
- func (pA *TK) Sdump(objsA ...interface{}) string
- func (pA *TK) Sdumpf(formatA string, objsA ...interface{}) string
- func (pA *TK) SetByRef(ppA interface{}, vA interface{}) (result error)
- func (pA *TK) SetClipText(textA string) error
- func (pA *TK) SetCurrentDir(dirA string) string
- func (pA *TK) SetEnv(keyA string, valueA string) string
- func (pA *TK) SetFileVar(fileNameA string, valueA interface{}) error
- func (pA *TK) SetGlobalEnv(vA string)
- func (pA *TK) SetLogFile(fileNameA string)
- func (pA *TK) SetMapItem(vA interface{}, keyA interface{}, valueA interface{}) error
- func (pA *TK) SetResponseHeader(resA http.ResponseWriter, keyA string, valueA string) error
- func (pA *TK) SetValue(p interface{}, v interface{}) error
- func (pA *TK) SetVar(nameA string, valueA interface{})
- func (pA *TK) ShuffleStringArray(aryA []string, timesA int)
- func (pA *TK) SignRSAWithSHA256(strA string, keyA string) string
- func (pA *TK) SimpleMapToString(mapA interface{}) string
- func (pA *TK) SizeVar() int
- func (pA *TK) Sleep(secA float64)
- func (pA *TK) SleepMilliSeconds(msA int)
- func (pA *TK) SleepSeconds(secA int)
- func (pA *TK) Sort(vA interface{}, optsA ...interface{}) interface{}
- func (pA *TK) Split(strA string, sepA string) []string
- func (pA *TK) SplitByLen(strA string, lenA int, byteLimitA ...interface{}) []string
- func (pA *TK) SplitByLenRune(s string, chunkSize int) []string
- func (pA *TK) SplitLines(strA string) []string
- func (pA *TK) SplitLinesRemoveEmpty(strA string) []string
- func (pA *TK) SplitN(strA string, sepA string, countA int) []string
- func (pA *TK) Spr(formatA string, argsA ...interface{}) string
- func (pA *TK) Sscanf(strA string, formatA string, argsA ...interface{}) interface{}
- func (pA *TK) StartSocksClient(optionsA ...string) error
- func (pA *TK) StartSocksServer(optionsA ...string) error
- func (pA *TK) StartTransparentProxy(local, server string, optionsA ...string) error
- func (pA *TK) StartTransparentProxy2(localA, remoteA string, optionsA ...string) error
- func (pA *TK) StartsWith(strA string, subStrA ...string) bool
- func (pA *TK) StartsWithBOM(strA string) bool
- func (pA *TK) StartsWithDigit(strA string) bool
- func (pA *TK) StartsWithIgnoreCase(strA string, subStrA string) bool
- func (pA *TK) StartsWithUpper(wordA string) bool
- func (pA *TK) StatusToMap(statusA string) interface{}
- func (pA *TK) StatusToString(statusA string) string
- func (pA *TK) StrToBool(strA string) bool
- func (pA *TK) StrToBytes(strA string) []byte
- func (pA *TK) StrToFloat64(strA string, defaultA ...float64) float64
- func (pA *TK) StrToFloat64E(strA string) (float64, error)
- func (pA *TK) StrToFloat64WithDefaultValue(strA string, defaultA float64) float64
- func (pA *TK) StrToHex(strA string) string
- func (pA *TK) StrToInt(strA string, defaultA ...int) int
- func (pA *TK) StrToInt64(strA string, defaultA ...int64) int64
- func (pA *TK) StrToInt64WithDefaultValue(strA string, defaultA int64) int64
- func (pA *TK) StrToIntE(strA string) (int, error)
- func (pA *TK) StrToIntPositive(strA string) int
- func (pA *TK) StrToIntQuick(strA string) (int, error)
- func (pA *TK) StrToIntWithDefaultValue(strA string, defaultA ...int) int
- func (pA *TK) StrToTime(strA string, defaultA time.Time) time.Time
- func (pA *TK) StrToTimeByFormat(strA string, formatA string) (time.Time, error)
- func (pA *TK) StrToTimeCompact(strA string, defaultA time.Time) time.Time
- func (pA *TK) StrToTimeCompactNoError(strA string) time.Time
- func (pA *TK) StringArrayToAnyArray(vA []string) []interface{}
- func (pA *TK) StringReplace(strA string, argsA ...string) string
- func (pA *TK) StringsToJson(strsA ...string) string
- func (pA *TK) SumBytes(srcDataA []byte) byte
- func (pA *TK) SystemCmd(cmdA string, argsA ...string) string
- func (pA *TK) SystemCmdDetached(cmdA string, argsA ...string) string
- func (pA *TK) TXResultFromString(strA string) *TXResult
- func (pA *TK) TXResultFromStringE(strA string) (*TXResult, error)
- func (pA *TK) TXResultFromStringSafely(strA string) *TXResult
- func (pA *TK) TableToMSSArray(tableA [][]string) []map[string]string
- func (pA *TK) TableToMSSJSON(tableA [][]string) string
- func (pA *TK) TableToMSSMap(tableA [][]string, keyA string) map[string]map[string]string
- func (pA *TK) TableToMSSMapArray(tableA [][]string, keyA string) map[string][]map[string]string
- func (pA *TK) TableToMSSOrderedMap(tableA [][]string, keyA string) map[string]*OrderedMap
- func (pA *TK) TableToOrderedMapArray(tableA [][]string) []*OrderedMap
- func (pA *TK) ThumbImage(imgA image.Image, maxWidthA int, maxHeightA int) image.Image
- func (pA *TK) TimeAddDate(timeA time.Time, yearA int, monthA int, dayA int) time.Time
- func (pA *TK) TimeAddSecs(timeA time.Time, secsA float64) time.Time
- func (pA *TK) TimeStampMilliToTime(timeStampA int64) time.Time
- func (pA *TK) TimeStampNanoToTime(timeStampA int64) time.Time
- func (pA *TK) TimeStampToTime(timeStampA interface{}) time.Time
- func (pA *TK) ToBase64(vA interface{}) string
- func (pA *TK) ToBool(vA interface{}) bool
- func (pA *TK) ToBoolWithDefaultValue(vA interface{}, defaultA ...bool) bool
- func (pA *TK) ToByte(vA interface{}, defaultA ...byte) byte
- func (pA *TK) ToFloat(v interface{}, defaultA ...float64) (result float64)
- func (pA *TK) ToHex(vA interface{}) string
- func (pA *TK) ToInt(v interface{}, defaultA ...int) (result int)
- func (pA *TK) ToIntI(valueA interface{}, defaultA int) int
- func (pA *TK) ToInterface(vA interface{}) interface{}
- func (pA *TK) ToJSON(objA interface{}) (string, error)
- func (pA *TK) ToJSONIndent(objA interface{}) (string, error)
- func (pA *TK) ToJSONIndentWithDefault(objA interface{}, defaultA string) string
- func (pA *TK) ToJSONWithDefault(objA interface{}, defaultA string) string
- func (pA *TK) ToJSONX(objA interface{}, optsA ...string) string
- func (pA *TK) ToLower(strA string) string
- func (pA *TK) ToOrderedMap(vA interface{}) interface{}
- func (pA *TK) ToPinYin(strA string, argsA ...string) interface{}
- func (pA *TK) ToPointer(pointerA *interface{}, typeA ...string) interface{}
- func (pA *TK) ToPointerFloat64Array(aryA []float64) *[]float64
- func (pA *TK) ToPointerStringArray(aryA []string) *[]string
- func (pA *TK) ToRune(v interface{}, defaultA ...rune) (result rune)
- func (pA *TK) ToStr(v interface{}) string
- func (pA *TK) ToTime(timeA interface{}, defaultA ...interface{}) interface{}
- func (pA *TK) ToUpper(strA string) string
- func (pA *TK) ToVar(pointerA *interface{}) interface{}
- func (pA *TK) ToXML(vA interface{}, optsA ...interface{}) interface{}
- func (pA *TK) Trim(strA string, cutSetA ...string) string
- func (pA *TK) TrimCharSet(strA string, charSetA string) string
- func (pA *TK) TrimEx(vA interface{}, argsA ...string) string
- func (pA *TK) TrimSafely(vA interface{}, defaultA ...string) string
- func (pA *TK) TryLockN(idxA ...int) bool
- func (pA *TK) TryRLockN(idxA ...int) bool
- func (pA *TK) TypeOfValue(vA interface{}) string
- func (pA *TK) TypeOfValueReflect(vA interface{}) string
- func (pA *TK) URIToPath(uri string) string
- func (pA *TK) Uncompress(dataA interface{}, argsA ...interface{}) interface{}
- func (pA *TK) UncompressText(textA string) string
- func (pA *TK) UnlockN(idxA ...int)
- func (pA *TK) UrlDecode(strA string) string
- func (pA *TK) UrlEncode(strA string) string
- func (pA *TK) UrlEncode2(strA string) string
- func (pA *TK) UrlExists(urlA string, optsA ...interface{}) interface{}
- func (pA *TK) ValidateOtpCode(passCodeA string, secretA string, optsA ...string) bool
- func (pA *TK) WeixinPaySignString(valuesA interface{}, keyA string, argsA ...string) string
- func (pA *TK) WrapError(vA interface{}, errA error) interface{}
- func (pA *TK) WriteResponse(resA http.ResponseWriter, strA string) error
- func (pA *TK) WriteResponseHeader(resA http.ResponseWriter, argsA ...interface{}) error
- type TXCollection
- func (p *TXCollection) AddOrSet(strA string)
- func (p *TXCollection) AddOrSetExcludeEmpty(strA string)
- func (p *TXCollection) Contains(strA string) bool
- func (p *TXCollection) GetList() []string
- func (p *TXCollection) GetListString(ifUpA bool, sepA string) string
- func (p *TXCollection) GetSortedList(ifUpA bool) []string
- func (p *TXCollection) InitX(sizeA int)
- func (p *TXCollection) Length() int
- func (p *TXCollection) Remove(strA string) bool
- func (p *TXCollection) Size() int
- type TXDelegate
- type TXResult
- type TXString
- func (p *TXString) Contains(patternA string) bool
- func (p *TXString) ContainsInHtmlAttributeString(substrA string) bool
- func (p *TXString) CutToLen(lenA int) string
- func (p *TXString) EQ(strA string) bool
- func (p *TXString) EndsWith(strA string) bool
- func (p *TXString) Equals(strA string) bool
- func (p *TXString) EqualsIgnoreCase(strA string) bool
- func (p *TXString) Error() string
- func (p *TXString) ErrorString() string
- func (p *TXString) ErrorStringF(formatA string) string
- func (p *TXString) InitWithString(strA string) *TXString
- func (p *TXString) IsEmpty() bool
- func (p *TXString) IsEmptyTrim() bool
- func (p *TXString) IsErrStr() bool
- func (p *TXString) IsError() bool
- func (p *TXString) JSONString(optsA ...string) string
- func (p *TXString) Len() int
- func (p *TXString) Length() int
- func (p *TXString) List() []string
- func (p *TXString) PlErr(prefixA string) *TXString
- func (p *TXString) PlSuccessOrErr(workA string) *TXString
- func (p *TXString) Print()
- func (p *TXString) PrintResultWithTimeLast()
- func (p *TXString) PrintWithPrefixTime(prefixA string)
- func (p *TXString) PrintWithPrefixTimeLast(prefixA string)
- func (p *TXString) PrintWithTimeLast()
- func (p *TXString) RegFindAll(patternA string, groupA int) []string
- func (p *TXString) RegFindFirst(patternA string, groupA int) string
- func (p *TXString) RegFindFirstX(patternA string, groupA int) string
- func (p *TXString) RegReplace(patternA string, replacementA string) *TXString
- func (p *TXString) RegReplaceX(patternA string, replacementA string) *TXString
- func (p *TXString) Replace(patternA string, replacementA string) *TXString
- func (p *TXString) Save(fileA string) *TXString
- func (p *TXString) Set(strA string) *TXString
- func (p *TXString) SplitLines() []string
- func (p *TXString) StartsWith(strA string) bool
- func (v TXString) String() string
- func (p *TXString) StringEmptyIfError() string
- func (p *TXString) ToStringList() []string
- func (p *TXString) ToStringListRemoveEmpty() []string
- func (p *TXString) Trim(cutSetA ...string) *TXString
- type TXStringArray
- type TXStringSlice
- type URI
- type UnaStruct1
- type UnaStruct2
- type UndefinedStruct
Constants ¶
const ( CommandReset = "RSET" // CommandStat is a command to retrieve statistics about mailbox. CommandStat = "STAT" // CommandDelete is a command to delete message from POP3 server. CommandDelete = "DELE" // CommandList is a command to get list of messages from POP3 server. CommandList = "LIST" // CommandUIDL is a command to get list of messages from POP3 server. CommandUIDL = "UIDL" // CommandNoop is a ping-like command that tells POP3 to do nothing. // (i.e. send something line pong-response). CommandNoop = "NOOP" // CommandPassword is a command to send user password to POP3 server. CommandPassword = "PASS" // CommandQuit is a command to tell POP3 server that you are quitting. CommandQuit = "QUIT" // CommandRetrieve is a command to retrieve POP3 message from server. CommandRetrieve = "RETR" // CommandUser is a command to send user login to POP3 server. CommandUser = "USER" )
const MAX_INT = int(^uint(0) >> 1)
max integer
const TXDEF_BUFFER_LEN = 1000
Variables ¶
var AESDecrypt = TKX.AESDecrypt
var AESEncrypt = TKX.AESEncrypt
var Abs = TKX.Abs
var AbsInt = TKX.AbsInt
var AddDebug = TKX.AddDebug
var AddDebugF = TKX.AddDebugF
var AddLastSubString = TKX.AddLastSubString
var AdjustBigFloat = TKX.AdjustBigFloat
var AdjustFloat = TKX.AdjustFloat
var AlipaySignString = TKX.AlipaySignString
var AnalyzeCommandLineParamter = TKX.AnalyzeCommandLineParamter
var AnalyzeURLParams = TKX.AnalyzeURLParams
var AnyArrayToStringArray = TKX.AnyArrayToStringArray
var AppendDualLineList = TKX.AppendDualLineList
var AppendSimpleMapFromFile = TKX.AppendSimpleMapFromFile
var AppendStringToFile = TKX.AppendStringToFile
var ArrayContains = TKX.ArrayContains
var AutoSeq = &Seq{}
var BigFloatExp = TKX.BigFloatExp
var BigFloatLog = TKX.BigFloatLog
var BigFloatPower = TKX.BigFloatPower
var BitXor = TKX.BitXor
var BoolToInt = TKX.BoolToInt
var BoolToStr = TKX.BoolToStr
var BuildG = "20230712"
var ByteSliceToStringDec = TKX.ByteSliceToStringDec
var ByteToHex = TKX.ByteToHex
var BytesContains = TKX.BytesContains
var BytesEndsWith = TKX.BytesEndsWith
var BytesIndex = TKX.BytesIndex
var BytesStartsWith = TKX.BytesStartsWith
var BytesToData = TKX.BytesToData
var BytesToHex = TKX.BytesToHex
var BytesToHexX = TKX.BytesToHexX
var CalCosineSimilarityBetweenFloatsBig = TKX.CalCosineSimilarityBetweenFloatsBig
var CalTextSimilarity = TKX.CalTextSimilarity
var Ceil = TKX.Ceil
var CenterEnlargeImage = TKX.CenterEnlargeImage
var CheckErr = TKX.CheckErr
var CheckErrCompact = TKX.CheckErrCompact
var CheckErrStr = TKX.CheckErrStr
var CheckErrStrf = TKX.CheckErrStrf
var CheckErrX = TKX.CheckErrX
var CheckErrf = TKX.CheckErrf
var CheckError = TKX.CheckError
var CheckErrorFunc = TKX.CheckErrorFunc
var CheckErrorString = TKX.CheckErrorString
var CheckToken = TKX.CheckToken
var CleanHtmlPlaceholders = TKX.CleanHtmlPlaceholders
var ClearDebug = TKX.ClearDebug
var ClearVar = TKX.ClearVar
var Close = TKX.Close
var ColorToHex = TKX.ColorToHex
var CompactJson = TKX.CompactJson
var CompareBytes = TKX.CompareBytes
var CompareTimeString = TKX.CompareTimeString
var Compress = TKX.Compress
var CompressText = TKX.CompressText
var ConnectPop3 = TKX.ConnectPop3
var Contains = TKX.Contains
var ContainsIgnoreCase = TKX.ContainsIgnoreCase
var ContainsIn = TKX.ContainsIn
var ContainsInStringList = TKX.ContainsInStringList
var ConvertStringToUTF8 = TKX.ConvertStringToUTF8
var ConvertToGB18030 = TKX.ConvertToGB18030
var ConvertToGB18030Bytes = TKX.ConvertToGB18030Bytes
var ConvertToUTF8 = TKX.ConvertToUTF8
var CopyFile = TKX.CopyFile
var CreateFile = TKX.CreateFile
var CreateSimpleEvent = TKX.CreateSimpleEvent
var CreateString = TKX.CreateString
var CreateStringEmpty = TKX.CreateStringEmpty
var CreateStringError = TKX.CreateStringError
var CreateStringErrorF = TKX.CreateStringErrorF
var CreateStringErrorFromTXError = TKX.CreateStringErrorFromTXError
var CreateStringSimple = TKX.CreateStringSimple
var CreateStringSuccess = TKX.CreateStringSuccess
var CreateStringWithObject = TKX.CreateStringWithObject
var CreateTXCollection = TKX.CreateTXCollection
var CreateTempFile = TKX.CreateTempFile
var DataToBytes = TKX.DataToBytes
var DealRef = TKX.DealRef
var DealString = TKX.DealString
var DebugModeG bool = false
var DecodeBytesFromImage = TKX.DecodeBytesFromImage
var DecodeFromBase64 = TKX.DecodeFromBase64
var DecodeHTML = TKX.DecodeHTML
var DecodeStringCustom = TKX.DecodeStringCustom
var DecodeStringSimple = TKX.DecodeStringSimple
var DecodeStringUnderline = TKX.DecodeStringUnderline
var DecryptDataByTXDEE = TKX.DecryptDataByTXDEE
var DecryptDataByTXDEF = TKX.DecryptDataByTXDEF
var DecryptFileByTXDEF = TKX.DecryptFileByTXDEF
var DecryptFileByTXDEFS = TKX.DecryptFileByTXDEFS
var DecryptFileByTXDEFStream = TKX.DecryptFileByTXDEFStream
var DecryptFileByTXDEFStreamS = TKX.DecryptFileByTXDEFStreamS
var DecryptStreamByTXDEF = TKX.DecryptStreamByTXDEF
var DecryptStringByTXDEE = TKX.DecryptStringByTXDEE
var DecryptStringByTXDEF = TKX.DecryptStringByTXDEF
var DecryptStringByTXTE = TKX.DecryptStringByTXTE
var DeepClone = TKX.DeepClone
var DeepCopyFromTo = TKX.DeepCopyFromTo
var DeleteItemInArray = TKX.DeleteItemInArray
var DeleteItemInFloat64Array = TKX.DeleteItemInFloat64Array
var DeleteItemInInt64Array = TKX.DeleteItemInInt64Array
var DeleteItemInIntArray = TKX.DeleteItemInIntArray
var DeleteItemInStringArray = TKX.DeleteItemInStringArray
var DeleteVar = TKX.DeleteVar
var DialPop3 = TKX.DialPop3
var DialPop3TLS = TKX.DialPop3TLS
var DocxToText = TKX.DocxToText
var DownloadBytes = TKX.DownloadBytes
var DownloadBytesWithProgress = TKX.DownloadBytesWithProgress
var DownloadFile = TKX.DownloadFile
var DownloadFileWithProgress = TKX.DownloadFileWithProgress
var DownloadPage = TKX.DownloadPage
var DownloadPageByMap = TKX.DownloadPageByMap
var DownloadPageUTF8 = TKX.DownloadPageUTF8
var DownloadWebBytes = TKX.DownloadWebBytes
var DownloadWebPage = TKX.DownloadWebPage
var DownloadWebPageX = TKX.DownloadWebPageX
var Dump = TKX.Dump
var Dumpf = TKX.Dumpf
var EncodeBytesInImage = TKX.EncodeBytesInImage
var EncodeHTML = TKX.EncodeHTML
var EncodeStringCustom = TKX.EncodeStringCustom
var EncodeStringCustomEx = TKX.EncodeStringCustomEx
var EncodeStringSimple = TKX.EncodeStringSimple
var EncodeStringUnderline = TKX.EncodeStringUnderline
var EncodeToBase64 = TKX.EncodeToBase64
var EncodeToXMLString = TKX.EncodeToXMLString
var EncryptDataByTXDEE = TKX.EncryptDataByTXDEE
var EncryptDataByTXDEF = TKX.EncryptDataByTXDEF
var EncryptFileByTXDEF = TKX.EncryptFileByTXDEF
var EncryptFileByTXDEFS = TKX.EncryptFileByTXDEFS
var EncryptFileByTXDEFStream = TKX.EncryptFileByTXDEFStream
var EncryptFileByTXDEFStreamS = TKX.EncryptFileByTXDEFStreamS
var EncryptFileByTXDEFWithHeader = TKX.EncryptFileByTXDEFWithHeader
var EncryptStreamByTXDEF = TKX.EncryptStreamByTXDEF
var EncryptStringByTXDEE = TKX.EncryptStringByTXDEE
var EncryptStringByTXDEF = TKX.EncryptStringByTXDEF
var EncryptStringByTXTE = TKX.EncryptStringByTXTE
var EndsWith = TKX.EndsWith
var EndsWithIgnoreCase = TKX.EndsWithIgnoreCase
var EnsureBasePath = TKX.EnsureBasePath
var EnsureBasePathInHome = TKX.EnsureBasePathInHome
var EnsureMakeDirs = TKX.EnsureMakeDirs
var EnsureMakeDirsE = TKX.EnsureMakeDirsE
var EnsureValidFileName = TKX.EnsureValidFileName
var EnsureValidFileNameX = TKX.EnsureValidFileNameX
var ErrStr = TKX.ErrStr
var ErrStrF = TKX.ErrStrF
var ErrStrToErr = TKX.ErrStrToErr
var ErrStrf = TKX.ErrStrf
var ErrToErrStr = TKX.ErrToErrStr
var ErrToStr = TKX.ErrToStr
var ErrToStrF = TKX.ErrToStrF
var Errf = TKX.Errf
var ErrorStringToError = TKX.ErrorStringToError
var ErrorToEmptyString = TKX.ErrorToEmptyString
var ErrorToString = TKX.ErrorToString
var Exit = TKX.Exit
var FatalErr = TKX.FatalErr
var FatalErrf = TKX.FatalErrf
var Fatalf = TKX.Fatalf
var FatalfByCondition = TKX.FatalfByCondition
var FindFirstDiffIndex = TKX.FindFirstDiffIndex
var FindSamePrefix = TKX.FindSamePrefix
var FindSubStringAll = TKX.FindSubStringAll
var FlattenXML = TKX.FlattenXML
var FlexEval = TKX.FlexEval
var FlexEvalMap = TKX.FlexEvalMap
var Float32ArrayToFloat64Array = TKX.Float32ArrayToFloat64Array
var Float64ToStr = TKX.Float64ToStr
var Floor = TKX.Floor
var FormToMap = TKX.FormToMap
var FormatJson = TKX.FormatJson
var FormatSQLValue = TKX.FormatSQLValue
var FormatStringSliceSlice = TKX.FormatStringSliceSlice
var FormatTime = TKX.FormatTime
var Fpl = TKX.Fpl
var Fpr = TKX.Fpr
var FromBase64 = TKX.FromBase64
var FromJSON = TKX.FromJSON
var FromJSONWithDefault = TKX.FromJSONWithDefault
var FromJSONX = TKX.FromJSONX
var FromXML = TKX.FromXML
var FromXMLWithDefault = TKX.FromXMLWithDefault
var FromXMLX = TKX.FromXMLX
var GenerateErrorString = TKX.GenerateErrorString
var GenerateErrorStringF = TKX.GenerateErrorStringF
var GenerateErrorStringFTX = TKX.GenerateErrorStringFTX
var GenerateErrorStringTX = TKX.GenerateErrorStringTX
var GenerateFileListInDir = TKX.GenerateFileListInDir
var GenerateFileListRecursively = TKX.GenerateFileListRecursively
var GenerateFileListRecursivelyWithExclusive = TKX.GenerateFileListRecursivelyWithExclusive
var GenerateJSONPResponse = TKX.GenerateJSONPResponse
var GenerateJSONPResponseMix = TKX.GenerateJSONPResponseMix
var GenerateJSONPResponseWith2Object = TKX.GenerateJSONPResponseWith2Object
var GenerateJSONPResponseWith3Object = TKX.GenerateJSONPResponseWith3Object
var GenerateJSONPResponseWithMore = TKX.GenerateJSONPResponseWithMore
var GenerateJSONPResponseWithObject = TKX.GenerateJSONPResponseWithObject
var GenerateOtpCode = TKX.GenerateOtpCode
var GenerateQR = TKX.GenerateQR
var GenerateRandomFloats = TKX.GenerateRandomFloats
var GenerateRandomString = TKX.GenerateRandomString
var GenerateRandomStringX = TKX.GenerateRandomStringX
var GenerateToken = TKX.GenerateToken
var GetANDResult = TKX.GetANDResult
var GetAddResult = TKX.GetAddResult
var GetAddResultForce = TKX.GetAddResultForce
var GetAddr = TKX.GetAddr
var GetAddsResult = TKX.GetAddsResult
var GetAllOSParameters = TKX.GetAllOSParameters
var GetAllParameters = TKX.GetAllParameters
var GetAllSwitches = TKX.GetAllSwitches
var GetApplicationPath = TKX.GetApplicationPath
var GetArrayItem = TKX.GetArrayItem
var GetArraySlice = TKX.GetArraySlice
var GetAvailableFileName = TKX.GetAvailableFileName
var GetBitANDNOTResult = TKX.GetBitANDNOTResult
var GetBitANDResult = TKX.GetBitANDResult
var GetBitNotResult = TKX.GetBitNotResult
var GetBitORResult = TKX.GetBitORResult
var GetBitXORResult = TKX.GetBitXORResult
var GetChar = TKX.GetChar
var GetChar2 = TKX.GetChar2
var GetClipText = TKX.GetClipText
var GetClipboardTextDefaultEmpty = TKX.GetClipboardTextDefaultEmpty
var GetClipboardTextWithDefault = TKX.GetClipboardTextWithDefault
var GetCurrentDir = TKX.GetCurrentDir
var GetCurrentThreadID = TKX.GetCurrentThreadID
var GetDBConnection = TKX.GetDBConnection
var GetDBResultArray = TKX.GetDBResultArray
var GetDBResultString = TKX.GetDBResultString
var GetDBRowCount = TKX.GetDBRowCount
var GetDBRowCountCompact = TKX.GetDBRowCountCompact
var GetDebug = TKX.GetDebug
var GetDirOfFilePath = TKX.GetDirOfFilePath
var GetDivResult = TKX.GetDivResult
var GetEQResult = TKX.GetEQResult
var GetEncZipReader = TKX.GetEncZipReader
var GetEncZipWriter = TKX.GetEncZipWriter
var GetEnv = TKX.GetEnv
var GetErrStr = TKX.GetErrStr
var GetErrStrX = TKX.GetErrStrX
var GetErrorString = TKX.GetErrorString
var GetErrorStringSafely = TKX.GetErrorStringSafely
var GetExecutablePath = TKX.GetExecutablePath
var GetFileAbs = TKX.GetFileAbs
var GetFileExt = TKX.GetFileExt
var GetFileInfo = TKX.GetFileInfo
var GetFileList = TKX.GetFileList
var GetFilePathSeperator = TKX.GetFilePathSeperator
var GetFileSize = TKX.GetFileSize
var GetFileSizeCompact = TKX.GetFileSizeCompact
var GetFileVar = TKX.GetFileVar
var GetFlexRef = TKX.GetFlexRef
var GetFormValueWithDefaultValue = TKX.GetFormValueWithDefaultValue
var GetGETResult = TKX.GetGETResult
var GetGTResult = TKX.GetGTResult
var GetGlobalEnvList = TKX.GetGlobalEnvList
var GetGlobalEnvString = TKX.GetGlobalEnvString
var GetHomeDir = TKX.GetHomeDir
var GetInput = TKX.GetInput
var GetInputBufferedScan = TKX.GetInputBufferedScan
var GetInputPasswordf = TKX.GetInputPasswordf
var GetInputf = TKX.GetInputf
var GetJSONNode = TKX.GetJSONNode
var GetJSONNodeAny = TKX.GetJSONNodeAny
var GetJSONNodeString = TKX.GetJSONNodeString
var GetJSONNodeStrings = TKX.GetJSONNodeStrings
var GetJSONSubNode = TKX.GetJSONSubNode
var GetJSONSubNodeAny = TKX.GetJSONSubNodeAny
var GetLETResult = TKX.GetLETResult
var GetLTResult = TKX.GetLTResult
var GetLastComponentBySeparator = TKX.GetLastComponentBySeparator
var GetLastComponentOfFilePath = TKX.GetLastComponentOfFilePath
var GetLastComponentOfUrl = TKX.GetLastComponentOfUrl
var GetLinesFromFile = TKX.GetLinesFromFile
var GetLogicalNotResult = TKX.GetLogicalNotResult
var GetLoginAuth = TKX.GetLoginAuth
var GetMSIStringWithDefault = TKX.GetMSIStringWithDefault
var GetMSSArrayFromXML = TKX.GetMSSArrayFromXML
var GetMSSFromXML = TKX.GetMSSFromXML
var GetMapItem = TKX.GetMapItem
var GetMapKeys = TKX.GetMapKeys
var GetMapRef = TKX.GetMapRef
var GetMimeTypeByExt = TKX.GetMimeTypeByExt
var GetMinusResult = TKX.GetMinusResult
var GetModResult = TKX.GetModResult
var GetMultiplyResult = TKX.GetMultiplyResult
var GetNEQResult = TKX.GetNEQResult
var GetNegativeResult = TKX.GetNegativeResult
var GetNextMonthStart = TKX.GetNextMonthStart
var GetNodeStringFromXML = TKX.GetNodeStringFromXML
var GetNodesStringFromXML = TKX.GetNodesStringFromXML
var GetNowDateString = TKX.GetNowDateString
var GetNowDateStringFormal = TKX.GetNowDateStringFormal
var GetNowMinutesInDay = TKX.GetNowMinutesInDay
var GetNowTick = TKX.GetNowTick
var GetNowTickNano = TKX.GetNowTickNano
var GetNowTimeOnlyStringBeijing = TKX.GetNowTimeOnlyStringBeijing
var GetNowTimeStamp = TKX.GetNowTick
var GetNowTimeString = TKX.GetNowTimeString
var GetNowTimeStringFormal = TKX.GetNowTimeStringFormal
var GetNowTimeStringFormat = TKX.GetNowTimeStringFormat
var GetNowTimeStringHourMinute = TKX.GetNowTimeStringHourMinute
var GetORResult = TKX.GetORResult
var GetOSArch = TKX.GetOSArch
var GetOSArgs = TKX.GetOSArgs
var GetOSArgsShort = TKX.GetOSArgsShort
var GetOSName = TKX.GetOSName
var GetParam = TKX.GetParam
var GetParamI = TKX.GetParamI
var GetParameter = TKX.GetParameter
var GetParameterByIndexWithDefaultValue = TKX.GetParameterByIndexWithDefaultValue
var GetPlainAuth = TKX.GetPlainAuth
var GetPointer = TKX.GetPointer
var GetRandomByte = TKX.GetRandomByte
var GetRandomFloat = TKX.GetRandomFloat
var GetRandomInt64InRange = TKX.GetRandomInt64InRange
var GetRandomInt64LessThan = TKX.GetRandomInt64LessThan
var GetRandomIntInRange = TKX.GetRandomIntInRange
var GetRandomIntLessThan = TKX.GetRandomIntLessThan
var GetRandomItem = TKX.GetRandomItem
var GetRandomStringItem = TKX.GetRandomStringItem
var GetRandomSubDualList = TKX.GetRandomSubDualList
var GetRandomizeInt64ArrayCopy = TKX.GetRandomizeInt64ArrayCopy
var GetRandomizeIntArrayCopy = TKX.GetRandomizeIntArrayCopy
var GetRandomizeStringArrayCopy = TKX.GetRandomizeStringArrayCopy
var GetRandomizeSubStringArrayCopy = TKX.GetRandomizeSubStringArrayCopy
var GetRef = TKX.GetRef
var GetRefValue = TKX.GetRefValue
var GetRefValueQuick = TKX.GetRefValueQuick
var GetRuntimeStack = TKX.GetRuntimeStack
var GetSeq = TKX.GetSeq
var GetSliceMaxLen = TKX.GetSliceMaxLen
var GetStringSliceFilled = TKX.GetStringSliceFilled
var GetSuccessValue = TKX.GetSuccessValue
var GetSwitch = TKX.GetSwitch
var GetSwitchI = TKX.GetSwitchI
var GetSwitchWithDefaultFloatValue = TKX.GetSwitchWithDefaultFloatValue
var GetSwitchWithDefaultInt64Value = TKX.GetSwitchWithDefaultInt64Value
var GetSwitchWithDefaultIntValue = TKX.GetSwitchWithDefaultIntValue
var GetSwitchWithDefaultValue = TKX.GetSwitchWithDefaultValue
var GetSystemEndian = TKX.GetSystemEndian
var GetSystemEndianInt = TKX.GetSystemEndianInt
var GetTempDir = TKX.GetTempDir
var GetTextFromFileOrClipboard = TKX.GetTextFromFileOrClipboard
var GetTextSimilarity = TKX.GetTextSimilarity
var GetTimeFromUnixTimeStamp = TKX.GetTimeFromUnixTimeStamp
var GetTimeFromUnixTimeStampMid = TKX.GetTimeFromUnixTimeStampMid
var GetTimeStamp = TKX.GetTimeStamp
var GetTimeStampMid = TKX.GetTimeStampMid
var GetTimeStampNano = TKX.GetTimeStampNano
var GetTimeStampNanoInt = TKX.GetTimeStampNanoInt
var GetTimeStringDiffMS = TKX.GetTimeStringDiffMS
var GetUUID = TKX.GetUUID
var GetUUID1 = TKX.GetUUID1
var GetUUID4 = TKX.GetUUID4
var GetUserInput = TKX.GetUserInput
var GetValue = TKX.GetValue
var GetValueOfMSS = TKX.GetValueOfMSS
var GetVar = TKX.GetVar
var GetVarEx = TKX.GetVarEx
var GetVersion = TKX.GetVersion
var GetWeb = TKX.GetWeb
var GetWebHead = TKX.GetWebHead
var GetWebResponse = TKX.GetWebResponse
var GetWebResponseBody = TKX.GetWebResponseBody
var GetXMLNode = TKX.GetXMLNode
var GetXmlDocument = TKX.GetXmlDocument
var GetZip = TKX.GetZipArchiver
var GetZipArchiver = TKX.GetZipArchiver
var HTMLToText = TKX.HTMLToText
var HasGlobalEnv = TKX.HasGlobalEnv
var HexToBytes = TKX.HexToBytes
var HexToColor = TKX.HexToColor
var HexToInt = TKX.HexToInt
var HexToStr = TKX.HexToStr
var HexToUInt = TKX.HexToUInt
var HttpRequest = TKX.HttpRequest
var IfFileExists = TKX.IfFileExists
var IfFormValueExists = TKX.IfFormValueExists
var IfSwitchExists = TKX.IfSwitchExists
var IfSwitchExistsWhole = TKX.IfSwitchExists
var IfSwitchExistsWholeI = TKX.IfSwitchExistsWholeI
var IfThenElse = TKX.IfThenElse
var ImageToAscii = TKX.ImageToAscii
var InStrings = TKX.InStrings
var InStringsTrim = TKX.InStringsTrim
var IndexInStringList = TKX.IndexInStringList
var IndexInStringListFromEnd = TKX.IndexInStringListFromEnd
var Int64ArrayToFloat64Array = TKX.Int64ArrayToFloat64Array
var Int64ToStr = TKX.Int64ToStr
var IntToKMGT = TKX.IntToKMGT
var IntToStr = TKX.IntToStr
var IntToStrX = TKX.IntToStrX
var IntToWYZ = TKX.IntToWYZ
var InterfaceToStringArray = TKX.InterfaceToStringArray
var InvalidTXResultG = TXResult{"Status": "fail", "Value": "general error"}
var IsDataEncryptedByTXDEF = TKX.IsDataEncryptedByTXDEF
var IsDirectory = TKX.IsDirectory
var IsEmptyTrim = TKX.IsEmptyTrim
var IsErrStr = TKX.IsErrStr
var IsErrStrX = TKX.IsErrStrX
var IsErrX = TKX.IsErrX
var IsError = TKX.IsError
var IsErrorString = TKX.IsErrorString
var IsFile = TKX.IsFile
var IsFloat64NearlyEqual = TKX.IsFloat64NearlyEqual
var IsHttps = TKX.IsHttps
var IsNil = TKX.IsNil
var IsNilOrEmpty = TKX.IsNilOrEmpty
var IsNilOrErrX = TKX.IsNilOrErrX
var IsStringEncryptedByTXDEF = TKX.IsStringEncryptedByTXDEF
var IsUndefined = TKX.IsUndefined
var IsValidEmail = TKX.IsValidEmail
var IsYesterday = TKX.IsYesterday
var JSONResponseToHTML = TKX.JSONResponseToHTML
var JSONToMapStringFloat64Array = TKX.JSONToMapStringFloat64Array
var JSONToMapStringString = TKX.JSONToMapStringString
var JSONToMapStringStringArray = TKX.JSONToMapStringStringArray
var JSONToObject = TKX.JSONToObject
var JSONToObjectE = TKX.JSONToObjectE
var JSONToStringArray = TKX.JSONToStringArray
var JoinDualList = TKX.JoinDualList
var JoinLines = TKX.JoinLines
var JoinLinesBySeparator = TKX.JoinLinesBySeparator
var JoinList = TKX.JoinList
var JoinPath = TKX.JoinPath
var JoinURL = TKX.JoinURL
var KindOfValueReflect = TKX.KindOfValueReflect
var Len = TKX.Len
var Len64 = TKX.Len64
var LessI = TKX.LessI
var LimitPrecision = TKX.LimitPrecision
var LimitString = TKX.LimitString
var ListToSQLList = TKX.ListToSQLList
var Listen = TKX.Listen
var LoadBytes = TKX.LoadBytes
var LoadBytesFromFile = TKX.LoadBytesFromFile
var LoadBytesFromFileE = TKX.LoadBytesFromFileE
var LoadDualLineList = TKX.LoadDualLineList
var LoadDualLineListFromString = TKX.LoadDualLineListFromString
var LoadImageFromBytes = TKX.LoadImageFromBytes
var LoadImageFromFile = TKX.LoadImageFromFile
var LoadJSONFromFile = TKX.LoadJSONFromFile
var LoadJSONFromString = TKX.LoadJSONFromString
var LoadJSONMapStringFloat64ArrayFromFile = TKX.LoadJSONMapStringFloat64ArrayFromFile
var LoadMSSFromJSONFile = TKX.LoadMSSFromJSONFile
var LoadSimpleMapFromDir = TKX.LoadSimpleMapFromDir
var LoadSimpleMapFromFile = TKX.LoadSimpleMapFromFile
var LoadSimpleMapFromFileE = TKX.LoadSimpleMapFromFileE
var LoadSimpleMapFromString = TKX.LoadSimpleMapFromString
var LoadSimpleMapFromStringE = TKX.LoadSimpleMapFromStringE
var LoadStringFromFile = TKX.LoadStringFromFile
var LoadStringFromFileB = TKX.LoadStringFromFileB
var LoadStringFromFileE = TKX.LoadStringFromFileE
var LoadStringFromFileWithDefault = TKX.LoadStringFromFileWithDefault
var LoadStringList = TKX.LoadStringList
var LoadStringListAsMap = TKX.LoadStringListAsMap
var LoadStringListAsMapRemoveEmpty = TKX.LoadStringListAsMapRemoveEmpty
var LoadStringListBuffered = TKX.LoadStringListBuffered
var LoadStringListFromFile = TKX.LoadStringListFromFile
var LoadStringListRemoveEmpty = TKX.LoadStringListRemoveEmpty
var LoadStringTX = TKX.LoadStringTX
var LoadText = TKX.LoadText
var LockN = TKX.LockN
var LocksG [10]sync.RWMutex
global locks, 0 - general purpose, 1 - lock for file seq generator
var LogWithTime = TKX.LogWithTime
var LogWithTimeCompact = TKX.LogWithTimeCompact
var Ls = TKX.Ls
var Lsr = TKX.Lsr
var MD5Encrypt = TKX.MD5Encrypt
var MD5EncryptToBytes = TKX.MD5EncryptToBytes
var MSI2MSS = TKX.MSI2MSS
var MSS2MSI = TKX.MSS2MSI
var MSSFromJSON = TKX.MSSFromJSON
var MapToPostData = TKX.MapToPostData
var MapToPostDataI = TKX.MapToPostDataI
var Max = TKX.Max
var MimeTypes = map[string]string{}/* 1113 elements not displayed */
var Min = TKX.Min
var NewAnyQueue = TKX.NewAnyQueue
var NewByteQueue = TKX.NewByteQueue
var NewCompactIterator = TKX.NewCompactIterator
var NewImage = TKX.NewImage
var NewIntSumBuffer = TKX.NewIntSumBuffer
var NewObject = TKX.NewObject
var NewOrderedMap = TKX.NewOrderedMap
var NewPop3Client = TKX.NewPop3Client
var NewQuickObject = TKX.NewQuickObject
var NewRandomGenerator = TKX.NewRandomGenerator
var NewSSHClient = TKX.NewSSHClient
var NewSeq = TKX.NewSeq
var NewSimpleFlexObject = TKX.NewSimpleFlexObject
var NewSimpleFlexObjectSimple = TKX.NewSimpleFlexObjectSimple
var NewSimpleFlexObjectWithString = TKX.NewSimpleFlexObjectWithString
var NewSimpleFlexObjectWithStringComplex = TKX.NewSimpleFlexObjectWithStringComplex
var NewSimpleStack = TKX.NewSimpleStack
var NewStaticWebHandler = TKX.NewStaticWebHandler
var NewStringRing = TKX.NewStringRing
var NewSyncMap = TKX.NewSyncMap
var NewSyncQueue = TKX.NewSyncQueue
var NewSyncStack = TKX.NewSyncStack
var NewTK = TKX.NewTK
var NewTXResult = TKX.NewTXResult
var NewTXResultFromJSON = TKX.NewTXResultFromJSON
var NewTXResultFromJSONX = TKX.NewTXResultFromJSONX
var NewTXResultFromWrap = TKX.NewTXResultFromWrap
var NewTXResultFromWrapX = TKX.NewTXResultFromWrapX
var NewXMLFromAny = TKX.NewXMLFromAny
var NewXMLFromMSI = TKX.NewXMLFromMSI
var NilEmptyStringNoFloat = TKX.NilEmptyStringNoFloat
var NilToEmptyStr = TKX.NilToEmptyStr
var NowToFileName = TKX.NowToFileName
var NowToStrUTC = TKX.NowToStrUTC
var ObjectToJSON = TKX.ObjectToJSON
var ObjectToJSONIndent = TKX.ObjectToJSONIndent
var ObjectsToS = TKX.ObjectsToS
var OctetToInt = TKX.OctetToInt
var OpenFile = TKX.OpenFile
var PadString = TKX.PadString
var ParseCommandLine = TKX.ParseCommandLine
var ParseCommandLineCompact = TKX.ParseCommandLineCompact
var ParseHexColor = TKX.ParseHexColor
var Pass = TKX.Pass
var PathToURI = TKX.PathToURI
var PickRandomItem = TKX.PickRandomItem
var Pkcs7Padding = TKX.Pkcs7Padding
var Pl = TKX.Pl
var PlAndExit = TKX.PlAndExit
var PlErr = TKX.PlErr
var PlErrAndExit = TKX.PlErrAndExit
var PlErrSimple = TKX.PlErrSimple
var PlErrSimpleAndExit = TKX.PlErrSimpleAndExit
var PlErrString = TKX.PlErrString
var PlErrWithPrefix = TKX.PlErrWithPrefix
var PlErrX = TKX.PlErrX
var PlNow = TKX.PlNow
var PlSimpleErrorString = TKX.PlSimpleErrorString
var PlTXErr = TKX.PlTXErr
var PlVerbose = TKX.PlVerbose
var Pln = TKX.Pln
var Plo = TKX.Plo
var Plos = TKX.Plos
var Plosr = TKX.Plosr
var Plt = TKX.Plt
var Plv = TKX.Plv
var PlvWithError = TKX.PlvWithError
var Plvs = TKX.Plvs
var Plvsr = TKX.Plvsr
var Plvx = TKX.Plvx
var PostRequest = TKX.PostRequest
var PostRequestBytesWithCookieX = TKX.PostRequestBytesWithCookieX
var PostRequestBytesWithMSSHeaderX = TKX.PostRequestBytesWithMSSHeaderX
var PostRequestBytesX = TKX.PostRequestBytesX
var PostRequestX = TKX.PostRequestX
var Pr = TKX.Pr
var Prf = TKX.Prf
var Printf = TKX.Printf
var Printfln = TKX.Printfln
var Prl = TKX.Prl
var ProcessHtmlTemplate = TKX.ProcessHtmlTemplate
var PutRequestX = TKX.PutRequestX
var RLockN = TKX.RLockN
var RUnlockN = TKX.RUnlockN
var Randomize = TKX.Randomize
var ReadAllString = TKX.ReadAllString
var ReadLineFromBufioReader = TKX.ReadLineFromBufioReader
var RecordsToMapArray = TKX.RecordsToMapArray
var RecordsToMapStringMap = TKX.RecordsToMapStringMap
var RecordsToOrderedMapArray = TKX.RecordsToOrderedMapArray
var RecordsToOrderedMapStringMap = TKX.RecordsToOrderedMapStringMap
var ReflectCallFuncCompact = TKX.ReflectCallFuncCompact
var ReflectCallFuncQuick = TKX.ReflectCallFuncQuick
var ReflectCallMethod = TKX.ReflectCallMethod
var ReflectCallMethodCompact = TKX.ReflectCallMethodCompact
var ReflectCallMethodQuick = TKX.ReflectCallMethodQuick
var ReflectCallMethodSlice = TKX.ReflectCallMethodSlice
var ReflectGetMember = TKX.ReflectGetMember
var ReflectGetMethod = TKX.ReflectGetMethod
var ReflectHasMethod = TKX.ReflectHasMethod
var RegContains = TKX.RegContains
var RegContainsIn = TKX.RegContainsIn
var RegContainsX = TKX.RegContainsX
var RegCount = TKX.RegCount
var RegCountX = TKX.RegCount
var RegFindAll = TKX.RegFindAll
var RegFindAllByGroupIndexX = TKX.RegFindAllByGroupIndexX
var RegFindAllGroups = TKX.RegFindAllGroups
var RegFindAllGroupsX = TKX.RegFindAllGroupsX
var RegFindAllIndexX = TKX.RegFindAllIndexX
var RegFindAllX = TKX.RegFindAllX
var RegFindFirst = TKX.RegFindFirst
var RegFindFirstGroupIndexX = TKX.RegFindFirstGroupIndexX
var RegFindFirstGroupsIndexX = TKX.RegFindFirstGroupsIndexX
var RegFindFirstGroupsX = TKX.RegFindFirstGroupsX
var RegFindFirstIndex = TKX.RegFindFirstIndex
var RegFindFirstIndexX = TKX.RegFindFirstIndexX
var RegFindFirstTX = TKX.RegFindFirstTX
var RegFindFirstX = TKX.RegFindFirstX
var RegMatch = TKX.RegMatch
var RegMatchX = TKX.RegMatchX
var RegQuote = TKX.RegQuote
var RegReplace = TKX.RegReplace
var RegReplaceX = TKX.RegReplaceX
var RegSplit = TKX.RegSplit
var RegSplitX = TKX.RegSplitX
var RegStartsWith = TKX.RegStartsWith
var RegStartsWithX = TKX.RegStartsWithX
var RemoveBOM = TKX.RemoveBOM
var RemoveDuplicateInDualLineList = TKX.RemoveDuplicateInDualLineList
var RemoveFile = TKX.RemoveFile
var RemoveFileExt = TKX.RemoveFileExt
var RemoveFirstSubString = TKX.RemoveFirstSubString
var RemoveGlobalEnv = TKX.RemoveGlobalEnv
var RemoveHtmlTags = TKX.RemoveHtmlTags
var RemoveHtmlTagsX = TKX.RemoveHtmlTagsX
var RemoveIntInArray = TKX.RemoveIntInArray
var RemoveItemsInArray = TKX.RemoveItemsInArray
var RemoveLastSubString = TKX.RemoveLastSubString
var RemoveStringInArray = TKX.RemoveStringInArray
var RenameFile = TKX.RenameFile
var RenderMarkdown = TKX.RenderMarkdown
var Replace = TKX.Replace
var ReplaceHtmlByMap = TKX.ReplaceHtmlByMap
var ReplaceLineEnds = TKX.ReplaceLineEnds
var ReplacePatternsInDocxBytes = TKX.ReplacePatternsInDocxBytes
var RequestX = TKX.RequestX
var ResetSeq = TKX.ResetSeq
var ReshapeXML = TKX.ReshapeXML
var ResizeImage = TKX.ResizeImage
var ResizeImageQuick = TKX.ResizeImageQuick
var ResizeImageX = TKX.ResizeImageX
var RestoreLineEnds = TKX.RestoreLineEnds
var Resultf = TKX.Resultf
var ReverseStringSlice = TKX.ReverseStringSlice
var Round = TKX.Round
var RunWinFileWithSystemDefault = TKX.RunWinFileWithSystemDefault
var RuneLen = TKX.RuneLen
var SafelyGetFloat64ForKeyWithDefault = TKX.SafelyGetFloat64ForKeyWithDefault
var SafelyGetIntForKeyWithDefault = TKX.SafelyGetIntForKeyWithDefault
var SafelyGetStringForKeyWithDefault = TKX.SafelyGetStringForKeyWithDefault
var SafelyGetStringInArray = TKX.SafelyGetStringInArray
var SaveBytesToFile = TKX.SaveBytesToFile
var SaveBytesToFileE = TKX.SaveBytesToFileE
var SaveDualLineList = TKX.SaveDualLineList
var SaveImageToBytes = TKX.SaveImageToBytes
var SaveImageToFile = TKX.SaveImageToFile
var SaveJSONIndentToFile = TKX.SaveJSONIndentToFile
var SaveJSONToFile = TKX.SaveJSONToFile
var SaveMSSToJSONFile = TKX.SaveMSSToJSONFile
var SaveSimpleMapToFile = TKX.SaveSimpleMapToFile
var SaveStringList = TKX.SaveStringList
var SaveStringListBuffered = TKX.SaveStringListBuffered
var SaveStringListBufferedByRange = TKX.SaveStringListBufferedByRange
var SaveStringListWin = TKX.SaveStringListWin
var SaveStringToFile = TKX.SaveStringToFile
var SaveStringToFileE = TKX.SaveStringToFileE
var SaveText = TKX.SaveStringToFileE
var Sdump = TKX.Sdump
var Sdumpf = TKX.Sdumpf
var SetByRef = TKX.SetByRef
var SetClipText = TKX.SetClipText
var SetCurrentDir = TKX.SetCurrentDir
var SetEnv = TKX.SetEnv
var SetFileVar = TKX.SetFileVar
var SetGlobalEnv = TKX.SetGlobalEnv
var SetLogFile = TKX.SetLogFile
var SetMapItem = TKX.SetMapItem
var SetResponseHeader = TKX.SetResponseHeader
var SetValue = TKX.SetValue
var SetVar = TKX.SetVar
var ShuffleStringArray = TKX.ShuffleStringArray
var SignRSAWithSHA256 = TKX.SignRSAWithSHA256
var SimpleMapToString = TKX.SimpleMapToString
var SizeVar = TKX.SizeVar
var Sleep = TKX.Sleep
var SleepMilliSeconds = TKX.SleepMilliSeconds
var SleepSeconds = TKX.SleepSeconds
var SortX = TKX.Sort
var Split = TKX.Split
var SplitByLen = TKX.SplitByLen
var SplitByLenRune = TKX.SplitByLenRune
var SplitLines = TKX.SplitLines
var SplitLinesRemoveEmpty = TKX.SplitLinesRemoveEmpty
var SplitN = TKX.SplitN
var Spr = TKX.Spr
var Sscanf = TKX.Sscanf
var StartSocksClient = TKX.StartSocksClient
var StartSocksServer = TKX.StartSocksServer
var StartTransparentProxy = TKX.StartTransparentProxy
var StartTransparentProxy2 = TKX.StartTransparentProxy2
var StartsWith = TKX.StartsWith
var StartsWithBOM = TKX.StartsWithBOM
var StartsWithDigit = TKX.StartsWithDigit
var StartsWithIgnoreCase = TKX.StartsWithIgnoreCase
var StartsWithUpper = TKX.StartsWithUpper
var StatusToMap = TKX.StatusToMap
var StatusToString = TKX.StatusToString
var StrToBool = TKX.StrToBool
var StrToBytes = TKX.StrToBytes
var StrToFloat64 = TKX.StrToFloat64
var StrToFloat64E = TKX.StrToFloat64E
var StrToFloat64WithDefaultValue = TKX.StrToFloat64WithDefaultValue
var StrToHex = TKX.StrToHex
var StrToInt = TKX.StrToInt
var StrToInt64 = TKX.StrToInt64
var StrToInt64WithDefaultValue = TKX.StrToInt64WithDefaultValue
var StrToIntE = TKX.StrToIntE
var StrToIntPositive = TKX.StrToIntPositive
var StrToIntQuick = TKX.StrToIntQuick
var StrToIntWithDefaultValue = TKX.StrToIntWithDefaultValue
var StrToTime = TKX.StrToTime
var StrToTimeByFormat = TKX.StrToTimeByFormat
var StrToTimeCompact = TKX.StrToTimeCompact
var StrToTimeCompactNoError = TKX.StrToTimeCompactNoError
var StringArrayToAnyArray = TKX.StringArrayToAnyArray
var StringReplace = TKX.StringReplace
var StringsToJson = TKX.StringsToJson
var SumBytes = TKX.SumBytes
var SystemCmd = TKX.SystemCmd
var SystemCmdDetached = TKX.SystemCmdDetached
var TKX = &TK{Version: VersionG}
var TXResultFromString = TKX.TXResultFromString
var TXResultFromStringE = TKX.TXResultFromStringE
var TXResultFromStringSafely = TKX.TXResultFromStringSafely
var TableToMSSArray = TKX.TableToMSSArray
var TableToMSSJSON = TKX.TableToMSSJSON
var TableToMSSMap = TKX.TableToMSSMap
var TableToMSSMapArray = TKX.TableToMSSMapArray
var TableToMSSOrderedMap = TKX.TableToMSSOrderedMap
var TableToOrderedMapArray = TKX.TableToOrderedMapArray
var ThumbImage = TKX.ThumbImage
var TickToTime = TKX.TimeStampToTime
var TimeAddDate = TKX.TimeAddDate
var TimeAddSecs = TKX.TimeAddSecs
var TimeFormat = "2006-01-02 15:04:05"
var TimeFormatCompact = "20060102150405"
var TimeFormatCompact2 = "2006/01/02 15:04:05"
var TimeFormatDateCompact = "20060102"
var TimeFormatMS = "2006-01-02 15:04:05.000"
var TimeFormatMSCompact = "20060102150405.000"
var TimeStampMilliToTime = TKX.TimeStampMilliToTime
var TimeStampNanoToTime = TKX.TimeStampNanoToTime
var TimeStampToTime = TKX.TimeStampToTime
var ToBase64 = TKX.ToBase64
var ToBool = TKX.ToBool
var ToBoolWithDefaultValue = TKX.ToBoolWithDefaultValue
var ToByte = TKX.ToByte
var ToFloat = TKX.ToFloat
var ToHex = TKX.ToHex
var ToInt = TKX.ToInt
var ToIntI = TKX.ToIntI
var ToInterface = TKX.ToInterface
var ToJSON = TKX.ToJSON
var ToJSONIndent = TKX.ToJSONIndent
var ToJSONIndentWithDefault = TKX.ToJSONIndentWithDefault
var ToJSONWithDefault = TKX.ToJSONWithDefault
var ToJSONX = TKX.ToJSONX
var ToLower = TKX.ToLower
var ToOrderedMap = TKX.ToOrderedMap
var ToPinYin = TKX.ToPinYin
var ToPointer = TKX.ToPointer
var ToPointerFloat64Array = TKX.ToPointerFloat64Array
var ToPointerStringArray = TKX.ToPointerStringArray
var ToRune = TKX.ToRune
var ToStr = TKX.ToStr
var ToTime = TKX.ToTime
var ToUpper = TKX.ToUpper
var ToVar = TKX.ToVar
var ToXML = TKX.ToXML
var Trim = TKX.Trim
var TrimCharSet = TKX.TrimCharSet
var TrimEx = TKX.TrimEx
var TrimSafely = TKX.TrimSafely
var TryLockN = TKX.TryLockN
var TryRLockN = TKX.TryRLockN
var TypeOfValue = TKX.TypeOfValue
var TypeOfValueReflect = TKX.TypeOfValueReflect
var URIToPath = TKX.URIToPath
var Uncompress = TKX.Uncompress
var UncompressText = TKX.UncompressText
var UnlockN = TKX.UnlockN
var UrlDecode = TKX.UrlDecode
var UrlEncode = TKX.UrlEncode
var UrlEncode2 = TKX.UrlEncode2
var UrlExists = TKX.UrlExists
var ValidateOtpCode = TKX.ValidateOtpCode
var VersionG = "v1.0.1"
var WeixinPaySignString = TKX.WeixinPaySignString
var WrapError = TKX.WrapError
var WriteResponse = TKX.WriteResponse
var WriteResponseHeader = TKX.WriteResponseHeader
Functions ¶
func CompareURI ¶
func Decode ¶
Decode gets messages from pictures using LSB steganography, decode the message from the picture and return it as a sequence of bytes It wraps EncodeNRGBA making the conversion from image.Image to image.NRGBA
Input: msgLen uint32 : size of the message to be decoded pictureInputFile image.Image : image data used in decoding Output: message []byte decoded from image
func EncodeBytesInImageBuffer ¶
func EncodeBytesInImageBuffer(bufA *bytes.Buffer, imageA *image.Image, contentA []byte, optsA ...string) error
Encode encodes a given string into the input image using least significant bit encryption (LSB steganography) The minnimum image size is 23 pixels It wraps EncodeNRGBA making the conversion from image.Image to image.NRGBA
Input: writeBuffer *bytes.Buffer : the destination of the encoded image bytes message []byte : byte slice of the message to be encoded pictureInputFile image.Image : image data used in encoding Output: bytes buffer ( io.writter ) to create file, or send data.
func EncodeNRGBA ¶
EncodeNRGBA encodes a given string into the input image using least significant bit encryption (LSB steganography) The minnimum image size is 24 pixels for one byte. For each additional byte, it is necessary 3 more pixels.
Input: writeBuffer *bytes.Buffer : the destination of the encoded image bytes pictureInputFile image.NRGBA : image data used in encoding message []byte : byte slice of the message to be encoded Output: bytes buffer ( io.writter ) to create file, or send data.
func GetMessageSizeFromImage ¶
GetMessageSizeFromImage gets the size of the message from the first four bytes encoded in the image
func GetTextByParagraph ¶
GetTextByParagraph parses XML content and extracts text by paragraphs.
func GetXmlContent ¶
GetXmlContent extracts the XML content from a .docx file.
func MaxEncodeSize ¶
MaxEncodeSize given an image will find how many bytes can be stored in that image using least significant bit encoding ((width * height * 3) / 8 ) - 4 The result must be at least 4,
func NewCountingWriter ¶
func NewCountingWriter(lockA *sync.Mutex, writebackA *string, writebackIA *interface{}, callbackA func(interface{}) interface{}) io.Writer {
func SimilarChar ¶
return the total length of longest string both in str1 and str2
func SimilarStr ¶
return the len of longest string both in str1 and str2 and the positions in str1 and str2
func SimilarText ¶
return a int value in [0, 100], which stands for match level
func SortMSIArray ¶
Types ¶
type AnyQueue ¶
type AnyQueue struct { Head *AnyQueueItem Tail *AnyQueueItem CapM int SizeM int }
A queue with size limit(default 10, set to -1 for infinite)
func (*AnyQueue) SetByIndex ¶
type AnyQueueItem ¶
type AnyQueueItem struct { Prev *AnyQueueItem Next *AnyQueueItem Value interface{} }
func (AnyQueueItem) String ¶
func (v AnyQueueItem) String() string
type ByteQueue ¶
type ByteQueue struct { Head *ByteQueueItem Tail *ByteQueueItem CapM int SizeM int }
type ByteQueueItem ¶
type ByteQueueItem struct { Prev *ByteQueueItem Next *ByteQueueItem Value byte }
func (ByteQueueItem) String ¶
func (v ByteQueueItem) String() string
type CompactDelegate ¶
type CompactDelegate func(inputA interface{}) interface{}
type CompactIterator ¶
type CompactIterator struct { Type int // 0: unknown, 1: int, 2: float64, 21: string, 22: []byte, 23: []rune, 31: []int, 32: []float64, 33: []string, 51: map[string]string, 52: map[string]int, 53: map[string]float64, 61: map[int]int, 62: map[int]string, 81: map[string]interface{}, 82: *OrderedMap, 91: []interface{}, 92: []map[string]string, 93: []map[string]interface{}, 94: []*OrderedMap, 97: reflect array/slice, 98: reflect map Direction int // 0(default): >=, 1: <=, 2: >, 3: <, 4: == Count int Current interface{} Step interface{} Stop interface{} Data interface{} Keys interface{} }
func (*CompactIterator) HasNext ¶
func (p *CompactIterator) HasNext() bool
func (*CompactIterator) Next ¶
func (p *CompactIterator) Next() (int, interface{}, interface{}, bool)
func (*CompactIterator) QuickNext ¶
func (p *CompactIterator) QuickNext() interface{}
func (*CompactIterator) QuickNextWithIndex ¶
func (p *CompactIterator) QuickNextWithIndex() interface{}
type Connection ¶
type Connection struct { Reader *textproto.Reader Writer *textproto.Writer // contains filtered or unexported fields }
Client holds the net conn and read/write buffer objects.
func NewConnection ¶
func NewConnection(conn io.ReadWriteCloser) *Connection
NewConnection initializes a connection.
func (*Connection) Cmd ¶
func (c *Connection) Cmd(format string, args ...interface{}) (string, error)
Cmd sends the given command on the connection.
func (*Connection) ReadLine ¶
func (c *Connection) ReadLine() (string, error)
ReadLine reads a single line from the buffer.
func (*Connection) ReadLines ¶
func (c *Connection) ReadLines() (lines []string, err error)
ReadLines reads from the buffer until it hits the message end dot (".").
type CountingWriter ¶
type CountingWriter struct { Count int Total int IfPercent bool IfRaw bool WritebackI *int WritebackS *string WritebackA *interface{} Callback func(interface{}) interface{} Lock *sync.Mutex }
func (*CountingWriter) Reset ¶
func (pA *CountingWriter) Reset()
type ExitCallback ¶
type ExitCallback func()
type Indentation ¶
type IntSumBuffer ¶
IntSumBuffer
func (*IntSumBuffer) AddAvgCompact ¶
func (p *IntSumBuffer) AddAvgCompact(vA int) interface{}
func (*IntSumBuffer) AddCompact ¶
func (p *IntSumBuffer) AddCompact(vA int) interface{}
type InterpolationFunction ¶
type InterpolationFunction int
const ( // Nearest-neighbor interpolation NearestNeighbor InterpolationFunction = iota // Bilinear interpolation Bilinear // Bicubic interpolation (with cubic hermite spline) Bicubic // Mitchell-Netravali interpolation MitchellNetravali // Lanczos interpolation (a=2) Lanczos2 // Lanczos interpolation (a=3) Lanczos3 )
InterpolationFunction constants
type MSIArraySorter ¶
func (MSIArraySorter) Len ¶
func (s MSIArraySorter) Len() int
func (MSIArraySorter) Less ¶
func (s MSIArraySorter) Less(i, j int) bool
func (MSIArraySorter) Swap ¶
func (s MSIArraySorter) Swap(i, j int)
type MSSArraySorter ¶
func (MSSArraySorter) Len ¶
func (s MSSArraySorter) Len() int
func (MSSArraySorter) Less ¶
func (s MSSArraySorter) Less(i, j int) bool
func (MSSArraySorter) Swap ¶
func (s MSSArraySorter) Swap(i, j int)
type MemFile ¶
type MemFile struct {
// contains filtered or unexported fields
}
memory file, conform to os.File
func NewMemFile ¶
New creates and initializes a new MemFile using b as its initial contents. The new File takes ownership of b.
func (*MemFile) Bytes ¶
Bytes returns the full contents of the MemFile. The result in only valid until the next Write, WriteAt, or Truncate call.
func (*MemFile) Read ¶
Read reads up to len(b) bytes from the MemFile. It returns the number of bytes read and any error encountered. At end of file, Read returns (0, io.EOF).
func (*MemFile) ReadAt ¶
ReadAt reads len(b) bytes from the MemFile starting at byte offset. It returns the number of bytes read and the error, if any. At end of file, that error is io.EOF.
func (*MemFile) Seek ¶
Seek sets the offset for the next Read or Write on file with offset, interpreted according to whence: 0 means relative to the origin of the file, 1 means relative to the current offset, and 2 means relative to the end.
func (*MemFile) Truncate ¶
Truncate changes the size of the file. It does not change the I/O offset.
func (*MemFile) Write ¶
Write writes len(b) bytes to the MemFile. It returns the number of bytes written and an error, if any. If the current file offset is past the io.EOF, then the space in-between are implicitly filled with zero bytes.
type MessageList ¶
type MessageList struct { // Non unique id reported by the server ID int // Size of the message Size int }
MessageList represents the metadata returned by the server for a message stored in the maildrop.
type OrderedMap ¶
type OrderedMap struct {
// contains filtered or unexported fields
}
func (*OrderedMap) Delete ¶
func (om *OrderedMap) Delete(key interface{}) (interface{}, bool)
Delete removes the key-value pair, and returns what `Get` would have returned on that key prior to the call to `Delete`.
func (*OrderedMap) DeleteByIndex ¶
func (om *OrderedMap) DeleteByIndex(idxA int) error
func (*OrderedMap) DeleteQuick ¶
func (om *OrderedMap) DeleteQuick(key interface{}) error
func (*OrderedMap) Dump ¶
func (pA *OrderedMap) Dump() string
func (*OrderedMap) Get ¶
func (om *OrderedMap) Get(key interface{}) (interface{}, bool)
Get looks for the given key, and returns the value associated with it, or nil if not found. The boolean it returns says whether the key is present in the map.
func (*OrderedMap) GetByIndex ¶
func (om *OrderedMap) GetByIndex(idxA int) (interface{}, bool)
func (*OrderedMap) GetCompact ¶
func (om *OrderedMap) GetCompact(key interface{}) interface{}
func (*OrderedMap) GetItemByIndex ¶
func (om *OrderedMap) GetItemByIndex(idxA int) []interface{}
func (*OrderedMap) GetItems ¶
func (om *OrderedMap) GetItems() []interface{}
func (*OrderedMap) GetKeyByIndex ¶
func (om *OrderedMap) GetKeyByIndex(idxA int) (interface{}, bool)
func (*OrderedMap) GetKeys ¶
func (om *OrderedMap) GetKeys() []interface{}
func (*OrderedMap) GetPair ¶
func (om *OrderedMap) GetPair(key interface{}) *OrderedMapPair
GetPair looks for the given key, and returns the pair associated with it, or nil if not found. The Pair struct can then be used to iterate over the ordered map from that point, either forward or backward.
func (*OrderedMap) GetPairByIndex ¶
func (om *OrderedMap) GetPairByIndex(idxA int) *OrderedMapPair
func (*OrderedMap) GetQuick ¶
func (om *OrderedMap) GetQuick(key interface{}) interface{}
func (*OrderedMap) GetString ¶
func (om *OrderedMap) GetString(key interface{}) string
func (*OrderedMap) GetStringKeys ¶
func (om *OrderedMap) GetStringKeys() []string
func (*OrderedMap) GetValues ¶
func (om *OrderedMap) GetValues() []interface{}
func (*OrderedMap) Load ¶
func (om *OrderedMap) Load(key interface{}) (interface{}, bool)
Load is an alias for Get, mostly to present an API similar to `sync.Map`'s.
func (*OrderedMap) MarshalJSON ¶
func (om *OrderedMap) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*OrderedMap) MoveAfter ¶
func (om *OrderedMap) MoveAfter(key, markKey interface{}) error
MoveAfter moves the value associated with key to its new position after the one associated with markKey. Returns an error iff key or markKey are not present in the map.
func (*OrderedMap) MoveBefore ¶
func (om *OrderedMap) MoveBefore(key, markKey interface{}) error
MoveBefore moves the value associated with key to its new position before the one associated with markKey. Returns an error iff key or markKey are not present in the map.
func (*OrderedMap) MoveToBack ¶
func (om *OrderedMap) MoveToBack(key interface{}) error
MoveToBack moves the value associated with key to the back of the ordered map. Returns an error iff key is not present in the map.
func (*OrderedMap) MoveToFront ¶
func (om *OrderedMap) MoveToFront(key interface{}) error
MoveToFront moves the value associated with key to the front of the ordered map. Returns an error iff key is not present in the map.
func (*OrderedMap) Newest ¶
func (om *OrderedMap) Newest() *OrderedMapPair
Newest returns a pointer to the newest pair. It's meant to be used to iterate on the ordered map's pairs from the newest to the oldest, e.g.: for pair := orderedMap.Oldest(); pair != nil; pair = pair.Next() { fmt.Printf("%v => %v\n", pair.Key, pair.Value) }
func (*OrderedMap) Oldest ¶
func (om *OrderedMap) Oldest() *OrderedMapPair
Oldest returns a pointer to the oldest pair. It's meant to be used to iterate on the ordered map's pairs from the oldest to the newest, e.g.: for pair := orderedMap.Oldest(); pair != nil; pair = pair.Next() { fmt.Printf("%v => %v\n", pair.Key, pair.Value) }
func (*OrderedMap) Remove ¶
func (om *OrderedMap) Remove(key interface{}) (interface{}, bool)
func (*OrderedMap) Set ¶
func (om *OrderedMap) Set(key interface{}, value interface{}) (interface{}, bool)
Set sets the key-value pair, and returns what `Get` would have returned on that key prior to the call to `Set`.
func (*OrderedMap) SetByIndex ¶
func (om *OrderedMap) SetByIndex(idxA int, value interface{}) error
func (*OrderedMap) SortStringKeys ¶
func (pA *OrderedMap) SortStringKeys(argsA ...string) error
func (*OrderedMap) SortStringKeysByFunc ¶
func (pA *OrderedMap) SortStringKeysByFunc(funcA func(i, j int) bool) error
func (*OrderedMap) Store ¶
func (om *OrderedMap) Store(key interface{}, value interface{}) (interface{}, bool)
Store is an alias for Set, mostly to present an API similar to `sync.Map`'s.
func (OrderedMap) String ¶
func (om OrderedMap) String() string
func (*OrderedMap) ToMap ¶
func (om *OrderedMap) ToMap() map[string]interface{}
func (*OrderedMap) ToMapAnyKey ¶
func (om *OrderedMap) ToMapAnyKey() map[interface{}]interface{}
func (*OrderedMap) UnmarshalJSON ¶
func (om *OrderedMap) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
type OrderedMapPair ¶
type OrderedMapPair struct { Key interface{} Value interface{} // contains filtered or unexported fields }
func (*OrderedMapPair) Next ¶
func (p *OrderedMapPair) Next() *OrderedMapPair
Next returns a pointer to the next pair.
func (*OrderedMapPair) Prev ¶
func (p *OrderedMapPair) Prev() *OrderedMapPair
Previous returns a pointer to the previous pair.
type Pop3Client ¶
type Pop3Client struct {
// contains filtered or unexported fields
}
Client for POP3.
func (*Pop3Client) Authorization ¶
func (c *Pop3Client) Authorization(user, pass string) error
Authorization logs into POP3 server with login and password.
func (*Pop3Client) Dele ¶
func (c *Pop3Client) Dele(msg int) error
Dele will delete the given message from the maildrop. Changes will only take affect after the Quit command is issued.
func (*Pop3Client) GetCount ¶
func (c *Pop3Client) GetCount() (count int, err error)
func (*Pop3Client) GetMessage ¶
func (*Pop3Client) ListAll ¶
func (c *Pop3Client) ListAll() (list []MessageList, err error)
ListAll returns a MessageList object which contains all messages in the maildrop.
func (*Pop3Client) ListMessages ¶
func (c *Pop3Client) ListMessages(argsA ...string) (list []map[string]string, err error)
func (*Pop3Client) ListUIDAll ¶
func (c *Pop3Client) ListUIDAll() (list []map[string]string, err error)
ListUIDAll returns a map[string]string object which contains all messages in the maildrop.
func (*Pop3Client) Noop ¶
func (c *Pop3Client) Noop() error
Noop will do nothing however can prolong the end of a connection.
func (*Pop3Client) Quit ¶
func (c *Pop3Client) Quit() error
Quit sends the QUIT message to the POP3 server and closes the connection.
func (*Pop3Client) Retr ¶
func (c *Pop3Client) Retr(msg int) (*enmime.Envelope, error)
Retr downloads the given message and returns it as a mail.Message object.
func (*Pop3Client) Rset ¶
func (c *Pop3Client) Rset() error
Rset will unmark any messages that have being marked for deletion in the current session.
func (*Pop3Client) SendCommand ¶
func (c *Pop3Client) SendCommand(cmdA string, argsA ...interface{}) ([]string, error)
SendCommand returns a []string object which contains all response lines.
func (*Pop3Client) Stat ¶
func (c *Pop3Client) Stat() (count, size int, err error)
Stat retrieves a drop listing for the current maildrop, consisting of the number of messages and the total size (in octets) of the maildrop. In the event of an error, all returned numeric values will be 0.
type QuickDelegate ¶
type QuickObject ¶
type QuickVarDelegate ¶
type QuickVarDelegate func(argsA ...interface{}) interface{}
func (QuickVarDelegate) MarshalJSON ¶
func (a QuickVarDelegate) MarshalJSON() ([]byte, error)
type RandomX ¶
type RandomX struct {
// contains filtered or unexported fields
}
RandomX 是一个线程不安全的随机数产生器
type ServerInfo ¶
type SimpleEvent ¶
SimpleEvent 简捷的事件结构
func (*SimpleEvent) Init ¶
func (p *SimpleEvent) Init(typeA string, valueA string)
Init 为SimpleEvent初始化数据
type SimpleFlexObject ¶
type SimpleFlexObject struct { IsValid bool SimpleMode bool Items []string ItemsMap map[string]int KeysMap map[int]string }
SimpleFlexObject
func (*SimpleFlexObject) AddItem ¶
func (p *SimpleFlexObject) AddItem(valueA string) string
func (*SimpleFlexObject) AddItemWithKey ¶
func (p *SimpleFlexObject) AddItemWithKey(keyA string, valueA string) string
func (*SimpleFlexObject) Copy ¶
func (p *SimpleFlexObject) Copy() *SimpleFlexObject
func (*SimpleFlexObject) Decode ¶
func (p *SimpleFlexObject) Decode(strA string, mustA bool)
func (*SimpleFlexObject) Encode ¶
func (p *SimpleFlexObject) Encode(defaultA ...string) string
func (*SimpleFlexObject) GetIndexByKey ¶
func (p *SimpleFlexObject) GetIndexByKey(keyA string) int
func (SimpleFlexObject) GetIndexMap ¶
func (v SimpleFlexObject) GetIndexMap() map[string]string
func (*SimpleFlexObject) GetItem ¶
func (p *SimpleFlexObject) GetItem(idxA int, defaultA ...string) string
func (*SimpleFlexObject) GetItemWithKey ¶
func (p *SimpleFlexObject) GetItemWithKey(keyA string, defaultA ...string) string
func (SimpleFlexObject) GetItems ¶
func (v SimpleFlexObject) GetItems() []string
func (SimpleFlexObject) GetItemsWithKey ¶
func (v SimpleFlexObject) GetItemsWithKey() []string
func (SimpleFlexObject) GetItemsWithoutKey ¶
func (v SimpleFlexObject) GetItemsWithoutKey() []string
func (SimpleFlexObject) GetKeys ¶
func (v SimpleFlexObject) GetKeys() []string
func (SimpleFlexObject) GetMap ¶
func (v SimpleFlexObject) GetMap() map[string]string
func (*SimpleFlexObject) InsertItem ¶
func (p *SimpleFlexObject) InsertItem(valueA string, idxA int) string
func (*SimpleFlexObject) InsertItemWithKey ¶
func (p *SimpleFlexObject) InsertItemWithKey(keyA string, valueA string, idxA int) string
func (*SimpleFlexObject) KeyExists ¶
func (p *SimpleFlexObject) KeyExists(keyA string) bool
func (SimpleFlexObject) KeySize ¶
func (v SimpleFlexObject) KeySize() int
func (*SimpleFlexObject) RemoveItemByIndex ¶
func (p *SimpleFlexObject) RemoveItemByIndex(idxA int) string
func (*SimpleFlexObject) RemoveItemByKey ¶
func (p *SimpleFlexObject) RemoveItemByKey(keyA string) string
func (*SimpleFlexObject) SetItem ¶
func (p *SimpleFlexObject) SetItem(valueA string, idxA int) string
func (*SimpleFlexObject) SetItemByKey ¶
func (p *SimpleFlexObject) SetItemByKey(valueA string, keyA string) string
func (*SimpleFlexObject) SetItemWithKey ¶
func (p *SimpleFlexObject) SetItemWithKey(keyA string, valueA string) string
func (SimpleFlexObject) Size ¶
func (v SimpleFlexObject) Size() int
func (SimpleFlexObject) String ¶
func (p SimpleFlexObject) String() string
type SimpleStack ¶
type SimpleStack struct { Items []interface{} Pointer int DefaultValue interface{} }
func (*SimpleStack) Clear ¶
func (p *SimpleStack) Clear()
func (*SimpleStack) Peek ¶
func (p *SimpleStack) Peek() interface{}
func (*SimpleStack) PeekLayer ¶
func (p *SimpleStack) PeekLayer(idxA int) interface{}
use -1 to get the topmost item in the stack, -2 as the second topmost item, and so on
func (*SimpleStack) Pop ¶
func (p *SimpleStack) Pop() interface{}
func (*SimpleStack) Push ¶
func (p *SimpleStack) Push(vA interface{})
func (*SimpleStack) Reset ¶
func (p *SimpleStack) Reset(argsA ...interface{})
if present, the 1st argument is the initial capacity of the stack, the 2nd is the default value return while use pop or peek actions when there are no values in the stack
func (*SimpleStack) Reverse ¶
func (p *SimpleStack) Reverse() *SimpleStack
func (*SimpleStack) SetByIndex ¶
func (p *SimpleStack) SetByIndex(idxA int, vA interface{}) error
use index -1 to set the topmost item in the stack, -2 as the second topmost item, and so on
func (*SimpleStack) Size ¶
func (p *SimpleStack) Size() int
type SortStruct ¶
type SortStruct struct { Value interface{} Key string Desc bool LenFunc (func() int) LessFunc (func(i, j int) bool) SwapFunc (func(i, j int)) }
func (*SortStruct) Len ¶
func (p *SortStruct) Len() int
func (*SortStruct) Less ¶
func (p *SortStruct) Less(i, j int) bool
func (*SortStruct) Swap ¶
func (p *SortStruct) Swap(i, j int)
type StringRing ¶
StringRing
func (*StringRing) Get ¶
func (p *StringRing) Get(indexA ...int) string
func (StringRing) GetList ¶
func (v StringRing) GetList() []string
func (StringRing) GetString ¶
func (v StringRing) GetString(sepA ...string) string
func (*StringRing) Push ¶
func (p *StringRing) Push(strA string)
func (*StringRing) Reset ¶
func (p *StringRing) Reset(sizeA ...int)
func (StringRing) String ¶
func (v StringRing) String() string
type StructAny ¶
type StructAny struct { CData bool Value interface{} Indent *Indentation Root *Root }
func (*StructAny) MarshalToString ¶
func (StructAny) MarshalXML ¶
func (*StructAny) WithIndent ¶
type StructMap ¶
type StructMap struct { CData bool Map map[string]interface{} Indent *Indentation Root *Root }
func (*StructMap) MarshalToString ¶
Builds XML as string
func (StructMap) MarshalXML ¶
func (*StructMap) WithIndent ¶
Add indentation to your xml
type SyncMap ¶
SyncMap
func (*SyncMap) QuickClear ¶
func (p *SyncMap) QuickClear()
func (*SyncMap) QuickDelete ¶
type SyncQueue ¶
type SyncQueue struct { Items *doublylinkedlist.List Lock sync.Mutex Cap int }
SyncQueue
func (*SyncQueue) GetCompact ¶
func (p *SyncQueue) GetCompact() interface{}
func (*SyncQueue) PeekCompact ¶
func (*SyncQueue) PeekFirstCompact ¶
func (p *SyncQueue) PeekFirstCompact() interface{}
func (*SyncQueue) PeekLastCompact ¶
func (p *SyncQueue) PeekLastCompact() interface{}
func (*SyncQueue) QuickGetList ¶
func (p *SyncQueue) QuickGetList() []interface{}
func (*SyncQueue) RemoveLast ¶
func (p *SyncQueue) RemoveLast()
func (*SyncQueue) ReplaceFirst ¶
func (p *SyncQueue) ReplaceFirst(vA interface{})
func (*SyncQueue) ReplaceLast ¶
func (p *SyncQueue) ReplaceLast(vA interface{})
type SyncStack ¶
type TK ¶
type TK struct {
Version string
}
func (*TK) AlipaySignString ¶
func (*TK) AnalyzeCommandLineParamter ¶
AnalyzeCommandLineParamter 分解命令行参数,注意如果要带双引号,需要从开始到结束都括上,例如save "-fileName=abc.txt",而不是save -fileName="abc.txt"
func (*TK) AnyArrayToStringArray ¶
func (*TK) AppendDualLineList ¶
func (*TK) AppendSimpleMapFromFile ¶
func (*TK) ArrayContains ¶
func (*TK) BigFloatPower ¶
big float
func (*TK) ByteSliceToStringDec ¶
func (*TK) BytesContains ¶
func (*TK) BytesEndsWith ¶
func (*TK) BytesIndex ¶
func (*TK) BytesStartsWith ¶
func (*TK) BytesToData ¶
func (*TK) BytesToHexX ¶
func (*TK) CalCosineSimilarityBetweenFloatsBig ¶
func (*TK) CenterEnlargeImage ¶
func (*TK) CheckErrCompact ¶
func (*TK) CheckErrStr ¶
func (*TK) CheckErrStrf ¶
func (*TK) CheckError ¶
func (pA *TK) CheckError(errA interface{}, funcsA ...(func()))
func (*TK) CheckErrorFunc ¶
func (*TK) CheckErrorString ¶
func (*TK) CleanHtmlPlaceholders ¶
func (*TK) ClearDebug ¶
func (pA *TK) ClearDebug()
func (*TK) CompareBytes ¶
func (*TK) CompareTimeString ¶
return: 1 if str1A > str2A, -1 if str1A < str2A, 0: equal, error if invalid format
func (*TK) CompressText ¶
func (*TK) ConnectPop3 ¶
func (*TK) ContainsInStringList ¶
func (*TK) ConvertStringToUTF8 ¶
ConvertStringToUTF8 转换GB18030编码等字符串为UTF-8字符串
func (*TK) ConvertToGB18030 ¶
ConvertToGB18030 转换UTF-8字符串为GB18030编码
func (*TK) ConvertToGB18030Bytes ¶
return dst[:nDst] }
func (*TK) ConvertToUTF8 ¶
switch srcEncT { case "", "GB18030", "gb18030", "GBK", "gbk", "GB2312", "gb2312": dst := make([]byte, len(srcA)*2) transformer := simplifiedchinese.GB18030.NewDecoder() nDst, _, err := transformer.Transform(dst, srcA, true) if err != nil { return GenerateErrorStringF("encoding failed: %v", err.Error()) } return string(dst[:nDst]) case "utf-8", "UTF-8": return string(srcA) case "windows-1252", "windows1252": dst := make([]byte, len(srcA)*2) transformer := charmap.Windows1252.NewDecoder() nDst, _, err := transformer.Transform(dst, srcA, true) if err != nil { return GenerateErrorStringF("encoding failed: %v", srcEncA) } return string(dst[:nDst]) default: return GenerateErrorStringF("unknown encoding: %v", srcEncA) } }
ConvertToUTF8 转换GB18030编码等字符串(字节形式)为UTF-8字符串
func (*TK) CreateSimpleEvent ¶
func (pA *TK) CreateSimpleEvent(typeA string, valueA string) *SimpleEvent
CreateSimpleEvent 创建一个SimpleEvent对象,并为其赋初值
func (*TK) CreateStringEmpty ¶
func (*TK) CreateStringError ¶
func (*TK) CreateStringErrorF ¶
func (*TK) CreateStringErrorFromTXError ¶
func (*TK) CreateStringSimple ¶
func (*TK) CreateStringSuccess ¶
func (*TK) CreateStringWithObject ¶
func (*TK) CreateTXCollection ¶
func (pA *TK) CreateTXCollection(sizeA int) *TXCollection
func (*TK) CreateTempFile ¶
CreateTempFile dirA如果为空,则在系统临时目录下。patternA 可以是example或example*.txt这样
func (*TK) DataToBytes ¶
func (*TK) DecodeBytesFromImage ¶
func (*TK) DecodeHTML ¶
func (*TK) DecodeStringCustom ¶
func (*TK) DecodeStringSimple ¶
func (*TK) DecodeStringUnderline ¶
func (*TK) DecryptDataByTXDEE ¶
func (*TK) DecryptDataByTXDEF ¶
func (*TK) DecryptFileByTXDEF ¶
func (*TK) DecryptFileByTXDEFS ¶
func (*TK) DecryptFileByTXDEFStream ¶
func (*TK) DecryptFileByTXDEFStreamS ¶
func (*TK) DecryptStreamByTXDEF ¶
func (*TK) DecryptStringByTXDEE ¶
func (*TK) DecryptStringByTXDEF ¶
func (*TK) DecryptStringByTXTE ¶
func (*TK) DeepClone ¶
func (pA *TK) DeepClone(original interface{}) (copy interface{})
DeepClone deep copies original and returns the copy as an interface.
func (*TK) DeepCopyFromTo ¶
DeepCopyFromTo deep copies original and assigns the copy to the copy argument (pointer).
func (*TK) DeleteItemInArray ¶
DeleteItemInArray 删除切片中的某一项
func (*TK) DeleteItemInFloat64Array ¶
func (*TK) DeleteItemInInt64Array ¶
func (*TK) DeleteItemInIntArray ¶
DeleteItemInIntArray 删除字符串切片中的某一项
func (*TK) DeleteItemInStringArray ¶
DeleteItemInStringArray 删除字符串切片中的某一项
func (*TK) DialPop3 ¶
func (pA *TK) DialPop3(addr string) (c *Pop3Client, err error)
DialPop3 opens new connection and creates a new POP3 client.
func (*TK) DialPop3TLS ¶
func (pA *TK) DialPop3TLS(addr string) (c *Pop3Client, err error)
DialPop3TLS opens new TLS connection and creates a new POP3 Pop3Client.
func (*TK) DocxToText ¶
func (*TK) DownloadBytesWithProgress ¶
func (*TK) DownloadFile ¶
func (*TK) DownloadFileWithProgress ¶
func (*TK) DownloadPage ¶
func (pA *TK) DownloadPage(urlA string, originalEncodingA string, postDataA url.Values, customHeaders string, timeoutSecsA time.Duration) string
DownloadPage download page with any encoding and convert to UTF-8
func (*TK) DownloadPageByMap ¶
func (*TK) DownloadPageUTF8 ¶
func (*TK) DownloadWebBytes ¶
func (*TK) DownloadWebPage ¶
func (*TK) DownloadWebPageX ¶
DownloadWebPageX deprecated, recommend to use getWeb instead
func (*TK) EncodeBytesInImage ¶
func (*TK) EncodeHTML ¶
func (*TK) EncodeStringCustomEx ¶
func (*TK) EncodeStringSimple ¶
func (*TK) EncodeStringUnderline ¶
func (*TK) EncodeToBase64 ¶
func (*TK) EncodeToXMLString ¶
EncodeToXMLString 转换字符串XML格式编码的字符串,例如:字符串“<as>\"!sdsdsgfde345344对方对方对法国</as>” 会编码为 “<as>"!sdsdsgfde345344对方对方对法国</as>”
func (*TK) EncryptDataByTXDEE ¶
func (*TK) EncryptDataByTXDEF ¶
func (*TK) EncryptFileByTXDEF ¶
func (*TK) EncryptFileByTXDEFS ¶
func (*TK) EncryptFileByTXDEFStream ¶
func (*TK) EncryptFileByTXDEFStreamS ¶
func (*TK) EncryptFileByTXDEFWithHeader ¶
func (*TK) EncryptStreamByTXDEF ¶
func (*TK) EncryptStringByTXDEE ¶
func (*TK) EncryptStringByTXDEF ¶
func (*TK) EncryptStringByTXTE ¶
func (*TK) EndsWithIgnoreCase ¶
EndsWithIgnoreCase 检查字符串strA结尾是否是subStrA,不区分大小写
func (*TK) EnsureBasePath ¶
EnsureBasePath make sure a base path for application is exists, otherwise create it first look for c:\nameA(Windows) or /nameA(Mac&Linux), then the application path if nameA contains ".", "/", "\\", will use it as basepath instead
func (*TK) EnsureBasePathInHome ¶
EnsureBasePath make sure a base path in user's home directory for application is exists, otherwise create it if failed, will try to create in the application path
func (*TK) EnsureMakeDirs ¶
func (*TK) EnsureMakeDirsE ¶
func (*TK) EnsureValidFileName ¶
EnsureValidFileName 确保文件名合理,不保证长度
func (*TK) EnsureValidFileNameX ¶
EnsureValidFileNameX 确保文件名合理并且长度合适
func (*TK) ErrStrToErr ¶
func (*TK) ErrToErrStr ¶
func (*TK) ErrorStringToError ¶
ErrorStringToError convert errorstring to error, if not, return nil
func (*TK) ErrorToEmptyString ¶
func (*TK) ErrorToString ¶
func (*TK) FatalfByCondition ¶
func (*TK) FindSamePrefix ¶
func (*TK) FlexEval ¶
FlexEval 计算一个表达式,支持普通语法,第一个参数是表达式字符串,然后是0个或多个参数,在表达式中可以用v1、v2……来指代,表达式采用 github.com/antonmedv/expr 提供的表达式计算引擎,相关进一步文档也可以从这里获取
func (*TK) FlexEvalMap ¶
类似FlexEval,区别是:FlexEval从第二个参数开始可以接受多个参数,并在表达式中以v1、v2这样来指代,而FlexEvalMap则只允许有一个参数,需要是映射类型,这样可以直接用键名在表达式中引用这些变量
func (*TK) Float32ArrayToFloat64Array ¶
func (*TK) Float64ToStr ¶
func (*TK) FormatSQLValue ¶
func (*TK) FormatStringSliceSlice ¶
func (*TK) FormatTime ¶
FormatTime default format "2006-01-02 15:04:05"
func (*TK) FromBase64 ¶
func (*TK) FromJSONWithDefault ¶
func (*TK) FromXMLWithDefault ¶
func (*TK) GenerateErrorString ¶
GenerateErrorString 生成一个出错字符串
func (*TK) GenerateErrorStringF ¶
GenerateErrorStringF 生成一个出错字符串,但可以加上格式,类似Printf
func (*TK) GenerateErrorStringFTX ¶
func (*TK) GenerateErrorStringTX ¶
func (*TK) GenerateFileListInDir ¶
func (*TK) GenerateFileListRecursively ¶
func (*TK) GenerateFileListRecursivelyWithExclusive ¶
func (*TK) GenerateJSONPResponse ¶
func (*TK) GenerateJSONPResponseMix ¶
func (*TK) GenerateJSONPResponseWith2Object ¶
func (*TK) GenerateJSONPResponseWith3Object ¶
func (*TK) GenerateJSONPResponseWithMore ¶
func (*TK) GenerateJSONPResponseWithObject ¶
func (*TK) GenerateQR ¶
GenerateQR default -level=1, 4 indicates more error tolerance
func (*TK) GenerateRandomFloats ¶
func (*TK) GenerateRandomString ¶
func (*TK) GenerateRandomStringX ¶
func (*TK) GenerateToken ¶
func (*TK) GetANDResult ¶
func (pA *TK) GetANDResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetAddResult ¶
func (pA *TK) GetAddResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetAddResultForce ¶
func (pA *TK) GetAddResultForce(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetAddsResult ¶
func (pA *TK) GetAddsResult(valuesA ...interface{}) (result interface{})
func (*TK) GetAllOSParameters ¶
func (*TK) GetAllParameters ¶
GetAllParameters 获取命令行参数中所有非开关参数
func (*TK) GetAllSwitches ¶
GetAllSwitches 获取命令行参数中所有开关参数
func (*TK) GetApplicationPath ¶
func (*TK) GetArrayItem ¶
func (*TK) GetArraySlice ¶
func (*TK) GetAvailableFileName ¶
func (*TK) GetBitANDNOTResult ¶
func (pA *TK) GetBitANDNOTResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetBitANDResult ¶
func (pA *TK) GetBitANDResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetBitNotResult ¶
func (pA *TK) GetBitNotResult(nA interface{}) interface{}
func (*TK) GetBitORResult ¶
func (pA *TK) GetBitORResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetBitXORResult ¶
func (pA *TK) GetBitXORResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetClipText ¶
func (*TK) GetClipboardTextDefaultEmpty ¶
func (*TK) GetClipboardTextWithDefault ¶
func (*TK) GetCurrentDir ¶
func (*TK) GetCurrentThreadID ¶
GetCurrentThreadID get goroutineid
func (*TK) GetDBConnection ¶
GetDBConnection must close it manually
func (*TK) GetDBResultArray ¶
GetDBResultArray 获取类似select a from ...的多行结果
func (*TK) GetDBResultString ¶
GetDBResultString 获取类似select a from ...的结果
func (*TK) GetDBRowCount ¶
GetDBRowCount 获取类似select count(*)的结果
func (*TK) GetDBRowCountCompact ¶
GetDBRowCountCompact 获取类似select count(*)的结果 return < 0 if fail
func (*TK) GetDirOfFilePath ¶
func (*TK) GetDivResult ¶
func (pA *TK) GetDivResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetEQResult ¶
func (pA *TK) GetEQResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetEncZipReader ¶
func (pA *TK) GetEncZipReader(filePathA string) (*zipx.ReadCloser, error)
func (*TK) GetErrStrX ¶
func (*TK) GetErrorString ¶
GetErrorString 获取出错字符串中的出错原因部分
func (*TK) GetErrorStringSafely ¶
GetErrorStringSafely 获取出错字符串中的出错原因部分,如果不是出错字符串则返回原串
func (*TK) GetExecutablePath ¶
func (*TK) GetFileAbs ¶
func (*TK) GetFileExt ¶
func (*TK) GetFileList ¶
func (*TK) GetFilePathSeperator ¶
func (*TK) GetFileSizeCompact ¶
func (*TK) GetFileVar ¶
func (*TK) GetFlexRef ¶
func (*TK) GetFormValueWithDefaultValue ¶
func (*TK) GetGETResult ¶
func (pA *TK) GetGETResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetGTResult ¶
func (pA *TK) GetGTResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetGlobalEnvList ¶
func (*TK) GetGlobalEnvString ¶
func (*TK) GetHomeDir ¶
func (*TK) GetInputBufferedScan ¶
GetInputBufferedScan 获取键盘输入
func (*TK) GetInputPasswordf ¶
func (*TK) GetJSONNode ¶
GetJSONNode return jsoniter.Any type as interface{}
func (*TK) GetJSONNodeAny ¶
GetJSONNodeAny return jsoniter.Any type func Get(data []byte, path ...interface{}) Any takes interface{} as path. If string, it will lookup json map. If int, it will lookup json array. If '*', it will map to each element of array or each key of map.
func (*TK) GetJSONNodeString ¶
pathA refer to github.com/tidwall/gjson
func (*TK) GetJSONNodeStrings ¶
pathA refer to github.com/tidwall/gjson
func (*TK) GetJSONSubNode ¶
GetJSONSubNode return jsoniter.Any type as interface{}
func (*TK) GetJSONSubNodeAny ¶
func (*TK) GetLETResult ¶
func (pA *TK) GetLETResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetLTResult ¶
func (pA *TK) GetLTResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetLastComponentBySeparator ¶
func (*TK) GetLastComponentOfFilePath ¶
func (*TK) GetLastComponentOfUrl ¶
func (*TK) GetLinesFromFile ¶
func (pA *TK) GetLinesFromFile(fileNameA string, startA int, endA int, optionsA ...string) ([]string, error)
GetLinesFromFile at least will return []string{}, avoid nil result
func (*TK) GetLogicalNotResult ¶
func (pA *TK) GetLogicalNotResult(nA interface{}) interface{}
func (*TK) GetMSIStringWithDefault ¶
func (*TK) GetMSSArrayFromXML ¶
func (*TK) GetMSSFromXML ¶
func (*TK) GetMapItem ¶
func (pA *TK) GetMapItem(mapA interface{}, keyA interface{}, defaultA ...interface{}) interface{}
func (*TK) GetMapKeys ¶
func (*TK) GetMimeTypeByExt ¶
func (*TK) GetMinusResult ¶
func (pA *TK) GetMinusResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetModResult ¶
func (pA *TK) GetModResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetMultiplyResult ¶
func (pA *TK) GetMultiplyResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetNEQResult ¶
func (pA *TK) GetNEQResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetNegativeResult ¶
func (pA *TK) GetNegativeResult(nA interface{}) interface{}
func (*TK) GetNextMonthStart ¶
input: 202301, output 20230201000000, return TXERROR string for error
func (*TK) GetNodeStringFromXML ¶
func (*TK) GetNodesStringFromXML ¶
func (*TK) GetNowDateString ¶
GetNowDateString output likes 20150409
func (*TK) GetNowDateStringFormal ¶
func (*TK) GetNowMinutesInDay ¶
func (*TK) GetNowTickNano ¶
func (*TK) GetNowTimeOnlyStringBeijing ¶
func (*TK) GetNowTimeString ¶
GetNowTimeString GetNowTimeString "20060102150405"
func (*TK) GetNowTimeStringFormal ¶
GetNowTimeStringFormal get the time string for now as "2020-02-02 08:09:15"
func (*TK) GetNowTimeStringFormat ¶
GetNowTimeStringFormat GetNowTimeStringFormat "2006-01-02 15:04:05.000"
func (*TK) GetNowTimeStringHourMinute ¶
func (*TK) GetORResult ¶
func (pA *TK) GetORResult(n1A interface{}, n2A interface{}) (result interface{})
func (*TK) GetOSArgsShort ¶
func (*TK) GetParameterByIndexWithDefaultValue ¶
GetParameterByIndexWithDefaultValue 按顺序序号获取命令行参数,其中0代表第一个参数,也就是软件名称或者命令名称,1开始才是第一个参数,注意参数不包括开关,即类似-verbose=true这样的
func (*TK) GetPlainAuth ¶
PlainAuth get plain auth
func (*TK) GetPointer ¶
func (pA *TK) GetPointer(p interface{}) interface{}
func (*TK) GetRandomByte ¶
func (*TK) GetRandomFloat ¶
func (*TK) GetRandomInt64InRange ¶
func (*TK) GetRandomInt64LessThan ¶
func (*TK) GetRandomIntInRange ¶
GetRandomIntInRange 获取[minA-maxA]之间的随机数
func (*TK) GetRandomIntLessThan ¶
GetRandomIntLessThan 获取[0-maxA)之间的随机数
func (*TK) GetRandomItem ¶
func (pA *TK) GetRandomItem(aryA []interface{}) interface{}
func (*TK) GetRandomStringItem ¶
func (*TK) GetRandomSubDualList ¶
func (*TK) GetRandomizeInt64ArrayCopy ¶
func (*TK) GetRandomizeIntArrayCopy ¶
GetRandomizeIntArrayCopy 获得一个随机化顺序后的int数组
func (*TK) GetRandomizeStringArrayCopy ¶
GetRandomizeStringArrayCopy 获得一个随机化后的字符串数组
func (*TK) GetRandomizeSubStringArrayCopy ¶
func (*TK) GetRefValue ¶
func (*TK) GetRefValueQuick ¶
func (pA *TK) GetRefValueQuick(ppA interface{}) (result interface{})
func (*TK) GetRuntimeStack ¶
func (*TK) GetStringSliceFilled ¶
func (*TK) GetSuccessValue ¶
func (*TK) GetSwitchI ¶
func (*TK) GetSwitchWithDefaultFloatValue ¶
func (*TK) GetSwitchWithDefaultInt64Value ¶
func (*TK) GetSwitchWithDefaultIntValue ¶
GetSwitchWithDefaultIntValue 与GetSwitchWithDefaultValue类似,返回一个整数
func (*TK) GetSwitchWithDefaultValue ¶
GetSwitchWithDefaultValue 获取命令行参数中的开关,用法:tmps := tk.GetSwitchWithDefaultValue(args, "-verbose=", "false")
func (*TK) GetSystemEndian ¶
func (*TK) GetSystemEndianInt ¶
GetSystemEndianInt return 1 indicate BigEndian, 0 indicate LitteEndian
func (*TK) GetTempDir ¶
func (*TK) GetTextFromFileOrClipboard ¶
func (*TK) GetTextSimilarity ¶
func (*TK) GetTimeFromUnixTimeStamp ¶
func (*TK) GetTimeFromUnixTimeStampMid ¶
func (*TK) GetTimeStringDiffMS ¶
func (*TK) GetUserInput ¶
GetUserInput 获取键盘输入,不太可靠
func (*TK) GetValue ¶
func (pA *TK) GetValue(p interface{}) interface{}
GetValue get a value from a pointer
func (*TK) GetValueOfMSS ¶
GetValueOfMSS get the value for key in map[string]string returns default value if not ok
func (*TK) GetVersion ¶
func (*TK) GetWebHead ¶
func (*TK) GetWebResponse ¶
func (*TK) GetWebResponseBody ¶
func (*TK) GetXMLNode ¶
GetXMLNode if no labelsA, return the root node, else return the specific node example: tk.GetXMLNode("... XML content", "envelop", "body", "anode")
func (*TK) GetXmlDocument ¶
func (*TK) GetZipArchiver ¶
func (*TK) HasGlobalEnv ¶
func (*TK) HexToBytes ¶
func (*TK) HttpRequest ¶
func (pA *TK) HttpRequest(urlA string, methodA string, originalEncodingA string, postDataA url.Values, customHeaders string, timeoutSecsA time.Duration, optsA ...string) string
HttpRequest download page with any encoding and convert to UTF-8
func (*TK) IfFormValueExists ¶
func (*TK) IfSwitchExists ¶
IfSwitchExistsWhole 判断命令行参数中是否存在开关(完整的,),用法:flag := IfSwitchExistsWhole(args, "-restart")
func (*TK) IfSwitchExistsWholeI ¶
func (*TK) IfThenElse ¶
func (*TK) ImageToAscii ¶
this function is highly inspired from github.com/1-ashraful-islam/image2ascii, thanks
func (*TK) IndexInStringListFromEnd ¶
func (*TK) Int64ArrayToFloat64Array ¶
func (*TK) Int64ToStr ¶
func (*TK) IntToKMGT ¶
IntToKMGT convert a number to "3.21K", "1.2G", etc, formatA like "%.02f" if sizeA < 1024, formatA is ignored
func (*TK) IntToWYZ ¶
IntToWYZ convert a number to "3.21万", "1.2亿", etc, formatA like "%.2f" if sizeA < 1024, formatA is ignored
func (*TK) InterfaceToStringArray ¶
func (*TK) IsDataEncryptedByTXDEF ¶
func (*TK) IsDirectory ¶
IsDirectory if is directory
func (*TK) IsEmptyTrim ¶
func (*TK) IsErrorString ¶
IsErrorString 判断是否表示出错的字符串
func (*TK) IsFloat64NearlyEqual ¶
func (*TK) IsNilOrEmpty ¶
func (*TK) IsNilOrErrX ¶
func (*TK) IsStringEncryptedByTXDEF ¶
func (*TK) IsUndefined ¶
func (*TK) IsValidEmail ¶
func (*TK) IsYesterday ¶
IsYesterday 判断字符串是否是昨天,formatA默认为"20060102"格式
func (*TK) JSONResponseToHTML ¶
func (*TK) JSONToMapStringFloat64Array ¶
func (*TK) JSONToMapStringString ¶
func (*TK) JSONToMapStringStringArray ¶
func (*TK) JSONToObject ¶
func (*TK) JSONToObjectE ¶
func (*TK) JSONToStringArray ¶
func (*TK) JoinDualList ¶
func (*TK) JoinLinesBySeparator ¶
func (*TK) KindOfValueReflect ¶
func (*TK) LimitPrecision ¶
func (*TK) ListToSQLList ¶
func (*TK) LoadBytesFromFile ¶
LoadBytesFromFile LoadBytes, no numA or numA[0] < 0 indicates read all
func (*TK) LoadBytesFromFileE ¶
LoadBytesFromFileE LoadBytes, no numA or numA[0] < 0 indicates read all
func (*TK) LoadDualLineListFromString ¶
func (*TK) LoadImageFromBytes ¶
func (*TK) LoadImageFromFile ¶
func (*TK) LoadJSONFromFile ¶
func (*TK) LoadJSONFromString ¶
func (*TK) LoadJSONMapStringFloat64ArrayFromFile ¶
func (*TK) LoadMSSFromJSONFile ¶
func (*TK) LoadSimpleMapFromFile ¶
func (*TK) LoadSimpleMapFromFileE ¶
func (*TK) LoadSimpleMapFromString ¶
func (*TK) LoadSimpleMapFromStringE ¶
func (*TK) LoadStringFromFile ¶
LoadStringFromFile 从文件中读取整个内容到字符串中
func (*TK) LoadStringFromFileE ¶
func (*TK) LoadStringFromFileWithDefault ¶
LoadStringFromFileWithDefault 从文件中读取整个内容到字符串中,出现问题时返回默认字符串
func (*TK) LoadStringListAsMapRemoveEmpty ¶
func (*TK) LoadStringListBuffered ¶
func (*TK) LoadStringListFromFile ¶
func (*TK) LoadStringListRemoveEmpty ¶
func (*TK) LoadStringTX ¶
func (*TK) LogWithTime ¶
func (*TK) LogWithTimeCompact ¶
func (*TK) MD5Encrypt ¶
func (*TK) MD5EncryptToBytes ¶
func (*TK) MapToPostDataI ¶
func (*TK) NewAnyQueue ¶
func (*TK) NewByteQueue ¶
func (*TK) NewCompactIterator ¶
NewCompactIterator(dataA, startA, stopA, stepA, dir(ection)A) for dirA: 0(default): >=, 1: <=, 2: >, 3: <, 4: ==, means the condition operator to terminate the range loop in most cases, for positive direction, it should be 0, for negative range, it will be 1
func (*TK) NewIntSumBuffer ¶
func (pA *TK) NewIntSumBuffer(sizeA int) *IntSumBuffer
func (*TK) NewPop3Client ¶
func (pA *TK) NewPop3Client(conn net.Conn) (*Pop3Client, error)
NewPop3Client creates a new POP3 Pop3Client.
func (*TK) NewQuickObject ¶
func (pA *TK) NewQuickObject(argsA ...interface{}) *QuickObject
func (*TK) NewRandomGenerator ¶
func (*TK) NewSSHClient ¶
func (pA *TK) NewSSHClient(hostA string, portA interface{}, userA string, passA string) (*goph.Client, error)
NewSSHClient create SSH client with fewer settings
func (*TK) NewSimpleFlexObject ¶
func (pA *TK) NewSimpleFlexObject(argsA ...interface{}) *SimpleFlexObject
func (*TK) NewSimpleFlexObjectSimple ¶
func (pA *TK) NewSimpleFlexObjectSimple() *SimpleFlexObject
func (*TK) NewSimpleFlexObjectWithString ¶
func (pA *TK) NewSimpleFlexObjectWithString(strA string, mustA bool) *SimpleFlexObject
func (*TK) NewSimpleFlexObjectWithStringComplex ¶
func (pA *TK) NewSimpleFlexObjectWithStringComplex(strA string, mustA bool) *SimpleFlexObject
func (*TK) NewSimpleStack ¶
func (pA *TK) NewSimpleStack(argsA ...interface{}) *SimpleStack
if present, the 1st argument is the initial capacity of the stack, the 2nd is the default value return while use pop or peek actions when there are no values in the stack
func (*TK) NewStaticWebHandler ¶
func (*TK) NewStringRing ¶
func (pA *TK) NewStringRing(sizeA ...int) *StringRing
func (*TK) NewSyncMap ¶
func (*TK) NewSyncQueue ¶
no size or <= 0 indicates no size limit
func (*TK) NewSyncStack ¶
func (*TK) NewTXResultFromJSON ¶
func (*TK) NewTXResultFromJSONX ¶
func (*TK) NewTXResultFromWrap ¶
func (*TK) NewTXResultFromWrapX ¶
func (*TK) NewXMLFromAny ¶
func (*TK) NewXMLFromMSI ¶
Initializes the builder. Required to do anything with this library
func (*TK) NilEmptyStringNoFloat ¶
func (*TK) NilToEmptyStr ¶
func (*TK) NowToFileName ¶
func (*TK) NowToStrUTC ¶
func (*TK) ObjectToJSON ¶
ObjectToJSON 任意对象转换为JSON字符串
func (*TK) ObjectToJSONIndent ¶
func (*TK) ObjectsToS ¶
func (*TK) ParseCommandLine ¶
ParseCommandLine 分析命令行字符串,类似os.Args的获取过程
func (*TK) ParseCommandLineCompact ¶
func (*TK) ParseHexColor ¶
ParseHexColor inspired by gg
func (*TK) PickRandomItem ¶
func (pA *TK) PickRandomItem(aryA []interface{}) interface{}
func (*TK) PlErrAndExit ¶
func (*TK) PlErrSimple ¶
PrlErrSimple 输出错误信息,结尾加一个回车
func (*TK) PlErrSimpleAndExit ¶
func (*TK) PlErrString ¶
func (*TK) PlErrWithPrefix ¶
func (*TK) PlSimpleErrorString ¶
func (*TK) PlvWithError ¶
func (*TK) Plvsr ¶
func (pA *TK) Plvsr(argsA ...interface{})
Plvsr output several variables, seperated by \n (new line character)
func (*TK) PostRequest ¶
PostRequest : another POST request sender
func (*TK) PostRequestBytesWithCookieX ¶
func (pA *TK) PostRequestBytesWithCookieX(urlA string, reqBodyA []byte, customHeadersA string, jarA *cookiejar.Jar, timeoutSecsA time.Duration) ([]byte, *cookiejar.Jar, error)
PostRequestBytesWithCookieX : PostRequest with custom headers
func (*TK) PostRequestBytesWithMSSHeaderX ¶
func (pA *TK) PostRequestBytesWithMSSHeaderX(urlA string, reqBodyA []byte, customHeadersA map[string]string, timeoutSecsA time.Duration) ([]byte, error)
PostRequestBytesX : PostRequest with custom headers
func (*TK) PostRequestBytesX ¶
func (pA *TK) PostRequestBytesX(urlA string, reqBodyA []byte, customHeadersA string, timeoutSecsA time.Duration) ([]byte, error)
PostRequestBytesX : PostRequest with custom headers
func (*TK) PostRequestX ¶
func (pA *TK) PostRequestX(urlA, reqBodyA string, customHeadersA string, timeoutSecsA time.Duration, optsA ...string) (string, error)
PostRequestX : Post Request with custom headers
func (*TK) ProcessHtmlTemplate ¶
func (*TK) PutRequestX ¶
func (pA *TK) PutRequestX(urlA, reqBodyA string, customHeadersA string, timeoutSecsA time.Duration, optsA ...string) (string, error)
PutRequestX : Put Request with custom headers
func (*TK) ReadAllString ¶
func (*TK) ReadLineFromBufioReader ¶
ReadLineFromBufioReader return result string, error and if reach EOF
func (*TK) RecordsToMapArray ¶
func (*TK) RecordsToMapStringMap ¶
func (*TK) RecordsToOrderedMapArray ¶
func (pA *TK) RecordsToOrderedMapArray(recA interface{}) interface{}
func (*TK) RecordsToOrderedMapStringMap ¶
func (*TK) ReflectCallFuncCompact ¶
func (pA *TK) ReflectCallFuncCompact(vA interface{}, argsA ...interface{}) interface{}
func (*TK) ReflectCallFuncQuick ¶
func (pA *TK) ReflectCallFuncQuick(vA interface{}, argsA ...interface{}) []interface{}
func (*TK) ReflectCallMethod ¶
func (*TK) ReflectCallMethodCompact ¶
func (*TK) ReflectCallMethodQuick ¶
func (*TK) ReflectCallMethodSlice ¶
func (*TK) ReflectGetMember ¶
func (pA *TK) ReflectGetMember(vA interface{}, argsA ...interface{}) (result interface{})
func (*TK) ReflectGetMethod ¶
func (pA *TK) ReflectGetMethod(vA interface{}, argsA ...interface{}) (result interface{})
func (*TK) ReflectHasMethod ¶
func (*TK) RegContains ¶
func (*TK) RegContainsX ¶
func (*TK) RegFindAllByGroupIndexX ¶
func (*TK) RegFindAllGroups ¶
func (*TK) RegFindAllGroupsX ¶
func (*TK) RegFindAllIndexX ¶
func (*TK) RegFindFirst ¶
RegFindFirst returns error string if no match or no matching group
func (*TK) RegFindFirstGroupIndexX ¶
func (*TK) RegFindFirstGroupsIndexX ¶
func (*TK) RegFindFirstGroupsX ¶
func (*TK) RegFindFirstIndex ¶
RegFindFirstIndex the first match location
func (*TK) RegFindFirstTX ¶
func (*TK) RegReplace ¶
func (*TK) RegReplaceX ¶
func (*TK) RegStartsWith ¶
func (*TK) RegStartsWithX ¶
func (*TK) RemoveDuplicateInDualLineList ¶
func (*TK) RemoveFile ¶
func (*TK) RemoveFileExt ¶
func (*TK) RemoveFirstSubString ¶
func (*TK) RemoveGlobalEnv ¶
func (*TK) RemoveHtmlTags ¶
func (*TK) RemoveItemsInArray ¶
RemoveItemsInArray
func (*TK) RemoveLastSubString ¶
func (*TK) RemoveStringInArray ¶
func (*TK) RenameFile ¶
func (*TK) RenderMarkdown ¶
func (*TK) ReplaceHtmlByMap ¶
func (*TK) ReplacePatternsInDocxBytes ¶
func (*TK) RequestX ¶
func (pA *TK) RequestX(urlA, methodA, reqBodyA string, customHeadersA string, timeoutSecsA time.Duration, optsA ...string) (string, error)
RequestX : Network(http) Request with custom headers
func (*TK) ReshapeXML ¶
func (*TK) ResizeImage ¶
func (*TK) ResizeImageQuick ¶
ResizeImageQuick set width or height < 1, will keep ratio, otherwise as new width and height
func (*TK) ReverseStringSlice ¶
func (*TK) RunWinFileWithSystemDefault ¶
RunWinFileWithSystemDefault run a program or open a file with default program in Windows
func (*TK) SafelyGetFloat64ForKeyWithDefault ¶
func (*TK) SafelyGetIntForKeyWithDefault ¶
func (*TK) SafelyGetStringForKeyWithDefault ¶
func (*TK) SafelyGetStringInArray ¶
func (*TK) SaveDualLineList ¶
func (*TK) SaveImageToBytes ¶
func (*TK) SaveImageToFile ¶
func (*TK) SaveJSONIndentToFile ¶
func (*TK) SaveJSONToFile ¶
func (*TK) SaveMSSToJSONFile ¶
func (*TK) SaveSimpleMapToFile ¶
func (*TK) SaveStringListBuffered ¶
func (*TK) SaveStringListBufferedByRange ¶
func (*TK) SaveStringListWin ¶
func (*TK) SaveStringToFile ¶
SaveStringToFile 保存字符串到文件
func (*TK) SetClipText ¶
func (*TK) SetCurrentDir ¶
func (*TK) SetFileVar ¶
func (*TK) SetGlobalEnv ¶
func (*TK) SetLogFile ¶
func (*TK) SetMapItem ¶
func (*TK) SetResponseHeader ¶
func (*TK) ShuffleStringArray ¶
ShuffleStringArray 把字符串数组随机化打乱timesA次
func (*TK) SimpleMapToString ¶
func (*TK) SleepMilliSeconds ¶
func (*TK) SleepSeconds ¶
func (*TK) SplitByLen ¶
SplitByLen 按长度拆分一个字符串为数组,注意由于是rune,可能不是按字节长度,例: listT = strSplitByLen(strT, 10),可以加第三个参数表示字节数不能超过多少,加第四个参数表示分隔符(遇上分隔符从分隔符后重新计算长度,也就是说分割长度可以超过指定的个数,一般用于有回车的情况)
func (*TK) SplitLines ¶
func (*TK) SplitLinesRemoveEmpty ¶
func (*TK) StartSocksClient ¶
func (*TK) StartSocksServer ¶
func (*TK) StartTransparentProxy ¶
func (*TK) StartTransparentProxy2 ¶
func (*TK) StartsWith ¶
StartsWith 检查字符串strA开始是否是subStrA
func (*TK) StartsWithBOM ¶
StartsWithBOM if a UTF-8 string starts with BOM
func (*TK) StartsWithDigit ¶
func (*TK) StartsWithIgnoreCase ¶
func (*TK) StartsWithUpper ¶
func (*TK) StatusToMap ¶
func (*TK) StatusToString ¶
func (*TK) StrToBytes ¶
func (*TK) StrToFloat64WithDefaultValue ¶
func (*TK) StrToInt64WithDefaultValue ¶
func (*TK) StrToIntPositive ¶
func (*TK) StrToIntWithDefaultValue ¶
StrToIntWithDefaultValue 字符串转整数,如果有问题则返回默认数值
func (*TK) StrToTimeByFormat ¶
StrToTimeByFormat default "2006-01-02 15:04:05"
func (*TK) StrToTimeCompact ¶
func (*TK) StringArrayToAnyArray ¶
func (*TK) StringsToJson ¶
func (*TK) SystemCmd ¶
SystemCmd runs a system command, such as "cmd /c dir", "cmd /k copy a.txt b.txt".
func (*TK) SystemCmdDetached ¶
SystemCmdDetached runs a system command and detaches it, such as "cmd /c dir", "cmd /k copy a.txt b.txt".
func (*TK) TXResultFromString ¶
func (*TK) TXResultFromStringSafely ¶
func (*TK) TableToMSSJSON ¶
func (*TK) TableToMSSMap ¶
func (*TK) TableToMSSMapArray ¶
func (*TK) TableToMSSOrderedMap ¶
func (pA *TK) TableToMSSOrderedMap(tableA [][]string, keyA string) map[string]*OrderedMap
func (*TK) TableToOrderedMapArray ¶
func (pA *TK) TableToOrderedMapArray(tableA [][]string) []*OrderedMap
func (*TK) ThumbImage ¶
func (*TK) TimeAddDate ¶
func (*TK) TimeStampToTime ¶
TimeStampToTime 时间戳转换为时间,如果参数是nil则返回当前时间,如果参数是整数,则按纳秒转换,如果是字符串,则可转换13位(毫秒)或10位(秒)的时间戳,此时如果转换失败则返回时间的零值(1970年...)
func (*TK) ToBoolWithDefaultValue ¶
func (*TK) ToInterface ¶
func (pA *TK) ToInterface(vA interface{}) interface{}
func (*TK) ToJSONIndent ¶
ToJSONIndent use fast method
func (*TK) ToJSONIndentWithDefault ¶
func (*TK) ToJSONWithDefault ¶
func (*TK) ToOrderedMap ¶
func (pA *TK) ToOrderedMap(vA interface{}) interface{}
func (*TK) ToPointerFloat64Array ¶
func (*TK) ToPointerStringArray ¶
func (*TK) TrimSafely ¶
func (*TK) TypeOfValue ¶
func (*TK) TypeOfValueReflect ¶
func (*TK) Uncompress ¶
func (pA *TK) Uncompress(dataA interface{}, argsA ...interface{}) interface{}
func (*TK) UncompressText ¶
func (*TK) UrlEncode2 ¶
func (*TK) ValidateOtpCode ¶
func (*TK) WeixinPaySignString ¶
func (*TK) WriteResponse ¶
func (pA *TK) WriteResponse(resA http.ResponseWriter, strA string) error
func (*TK) WriteResponseHeader ¶
func (pA *TK) WriteResponseHeader(resA http.ResponseWriter, argsA ...interface{}) error
type TXCollection ¶
var GlobalEnvSetG *TXCollection = nil
func (*TXCollection) AddOrSet ¶
func (p *TXCollection) AddOrSet(strA string)
func (*TXCollection) AddOrSetExcludeEmpty ¶
func (p *TXCollection) AddOrSetExcludeEmpty(strA string)
func (*TXCollection) Contains ¶
func (p *TXCollection) Contains(strA string) bool
func (*TXCollection) GetList ¶
func (p *TXCollection) GetList() []string
func (*TXCollection) GetListString ¶
func (p *TXCollection) GetListString(ifUpA bool, sepA string) string
func (*TXCollection) GetSortedList ¶
func (p *TXCollection) GetSortedList(ifUpA bool) []string
func (*TXCollection) InitX ¶
func (p *TXCollection) InitX(sizeA int)
func (*TXCollection) Length ¶
func (p *TXCollection) Length() int
func (*TXCollection) Remove ¶
func (p *TXCollection) Remove(strA string) bool
func (*TXCollection) Size ¶
func (p *TXCollection) Size() int
type TXDelegate ¶
type TXDelegate func(actionA string, objA interface{}, dataA interface{}, paramsA ...interface{}) interface{}
func (TXDelegate) MarshalJSON ¶
func (a TXDelegate) MarshalJSON() ([]byte, error)
type TXString ¶
type TXString struct { Err string Obj interface{} // contains filtered or unexported fields }
func (*TXString) ContainsInHtmlAttributeString ¶
func (*TXString) EqualsIgnoreCase ¶
func (*TXString) ErrorString ¶
func (*TXString) ErrorStringF ¶
func (*TXString) InitWithString ¶
func (*TXString) IsEmptyTrim ¶
func (*TXString) JSONString ¶
func (*TXString) PlSuccessOrErr ¶
func (*TXString) PrintResultWithTimeLast ¶
func (p *TXString) PrintResultWithTimeLast()
func (*TXString) PrintWithPrefixTime ¶
func (*TXString) PrintWithPrefixTimeLast ¶
func (*TXString) PrintWithTimeLast ¶
func (p *TXString) PrintWithTimeLast()
func (*TXString) RegFindFirstX ¶
func (*TXString) RegReplace ¶
func (*TXString) RegReplaceX ¶
func (*TXString) SplitLines ¶
func (*TXString) StartsWith ¶
func (*TXString) StringEmptyIfError ¶
func (*TXString) ToStringList ¶
func (*TXString) ToStringListRemoveEmpty ¶
type TXStringArray ¶
type TXStringArray []string
func (TXStringArray) Contains ¶
func (aryM TXStringArray) Contains(strA string) bool
func (TXStringArray) ContainsIgnoreCase ¶
func (aryM TXStringArray) ContainsIgnoreCase(strA string) bool
type TXStringSlice ¶
type TXStringSlice struct {
// contains filtered or unexported fields
}
type URI ¶
type URI string
URI represents the full URI for a file.
func URIFromPath ¶
URIFromPath returns a span URI for the supplied file path. It will always have the file scheme.
func URIFromURI ¶
type UnaStruct1 ¶
type UnaStruct1 func() (io.ReadCloser, error)
func (UnaStruct1) MarshalJSON ¶
func (a UnaStruct1) MarshalJSON() ([]byte, error)
type UnaStruct2 ¶
type UnaStruct2 func(actionA string, objA interface{}, dataA interface{}, paramsA ...interface{}) interface{}
func (UnaStruct2) MarshalJSON ¶
func (a UnaStruct2) MarshalJSON() ([]byte, error)
type UndefinedStruct ¶
type UndefinedStruct struct {
// contains filtered or unexported fields
}
var Undefined UndefinedStruct = UndefinedStruct{0}
func (UndefinedStruct) String ¶
func (o UndefinedStruct) String() string