Documentation
¶
Index ¶
- func Aes256Decode(cipherText string, encKey []byte, iv string) (string, error)
- func Aes256Encode(plaintext string, key []byte, iv string, blockSize int) string
- func Base64DecStd(data string) string
- func Base64DecUrl(data string) string
- func Base64EncStd(data string) string
- func Base64EncUrl(data string) string
- func BytesToString(data []byte) string
- func Concat(args ...string) string
- func ContainsInt(i []int, e int) bool
- func ContainsStr(s []string, e string) bool
- func Copy(srcFolder string, destFolder string) bool
- func CounterZeroNumber(length int) string
- func DeriveKey(passphrase string, salt []byte) []byte
- func GetMD5(s string) string
- func HttpClient(p PHttp) *http.Client
- func HttpDial(url string, t time.Duration) error
- func HttpDial2(url string, t time.Duration) bool
- func InlinePrintingXML(xmlString string) string
- func PKCS5Padding(ciphertext []byte, blockSize int, after int) []byte
- func RNG(min int, max int) int
- func ReadASingleValueInFile(filename string, keyword string) string
- func ReadGzFile(filename string) ([]byte, error)
- func ReadOnFile(file string) string
- func ReduceWords(words string, start int, length int) string
- func RemoveTabAndEnter(str string) string
- func Shellout(command string) (string, string, error)
- func Throw(up Exception)
- func WriteOnFile(data string, file string, append bool, mode os.FileMode)
- type Block
- type Exception
- type PHttp
- type Utils
- func (l *Utils) Get(url string, headers map[string]string, transport PHttp) ([]byte, string, int, error)
- func (l *Utils) GetDate(dateFormat string) string
- func (l *Utils) GetDateAdd(format string, day int, month int, year int) string
- func (l *Utils) GetDateTimeAdd(init string, add int, dateFormat string) string
- func (l *Utils) GetFormatTime(layout string) string
- func (l *Utils) GetLogId() string
- func (l *Utils) GetStringPathLog(logName string) string
- func (l *Utils) GetTomorrow(day time.Duration) string
- func (l *Utils) GetTomorrowWithFormat(day time.Duration, formatDate string) string
- func (l *Utils) GetUniqId() string
- func (l *Utils) GetYesterday(day time.Duration) string
- func (l *Utils) GetYesterdayWithFormat(day time.Duration, formatDate string) string
- func (l *Utils) Post(url string, headers map[string]string, body []byte, transport PHttp) ([]byte, string, int, error)
- func (l *Utils) SetUpLog(Log Utils)
- func (l *Utils) Upload(url string, headers map[string]string, extraParams map[string]string, ...)
- func (l *Utils) Write(logName string, logLevel string, logMsg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aes256Decode ¶ added in v2.1.7
func Aes256Encode ¶ added in v2.1.7
func Base64DecStd ¶
func Base64DecUrl ¶
func Base64EncStd ¶
func Base64EncUrl ¶
func BytesToString ¶
func ContainsInt ¶
func ContainsStr ¶
func CounterZeroNumber ¶
func HttpClient ¶
HttpClient (time.Duration, time.Duration, bool)
func InlinePrintingXML ¶
func PKCS5Padding ¶ added in v2.1.7
func ReadASingleValueInFile ¶
func ReadGzFile ¶
func ReadOnFile ¶
func RemoveTabAndEnter ¶
Types ¶
type Utils ¶
type Utils struct { LogPath string LogFullPath string LogLevelInit int LogName string LogFileName string LogOS *os.File LogThread string AccessLogFormat string AccessLogTimeFormat string TimeZone string }
func (*Utils) GetDateAdd ¶
func (*Utils) GetDateTimeAdd ¶
func (*Utils) GetFormatTime ¶
func (*Utils) GetStringPathLog ¶
Used to define a full path of a log
func (*Utils) GetTomorrowWithFormat ¶
func (*Utils) GetYesterdayWithFormat ¶
Click to show internal directories.
Click to hide internal directories.