Documentation
¶
Index ¶
- 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 Get(client *http.Client, log Logging, contentType string, url string) (string, string, error)
- func GetDate(dateFormat string) string
- func GetDateAdd(format string, day int, month int, year int) string
- func GetDateTimeAdd(init string, add int, dateFormat string) string
- func GetFormatTime(layout string) string
- func GetLogId() string
- func GetMD5(s string) string
- func GetTomorrow(day time.Duration) string
- func GetTomorrowWithFormat(day time.Duration, formatDate string) string
- func GetUniqId() string
- func GetYesterday(day time.Duration) string
- func GetYesterdayWithFormat(day time.Duration, formatDate string) string
- func HttpClient(timeout time.Duration, keepAlive time.Duration, useKeepAlive bool) *http.Client
- func HttpDial(url string, log Logging) error
- func InlinePrintingXML(xmlString string) string
- func Post(client *http.Client, log Logging, headers map[string]string, url string, ...) (string, string, error)
- 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 Logging
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64DecStd ¶
func Base64DecUrl ¶
func Base64EncStd ¶
func Base64EncUrl ¶
func BytesToString ¶
func ContainsInt ¶ added in v1.2.12
func ContainsStr ¶ added in v1.2.12
func CounterZeroNumber ¶
func GetDateAdd ¶ added in v1.2.13
func GetDateTimeAdd ¶ added in v1.2.19
func GetFormatTime ¶
func GetTomorrow ¶
func GetTomorrowWithFormat ¶ added in v1.2.17
func GetYesterday ¶
func GetYesterdayWithFormat ¶ added in v1.2.18
func HttpClient ¶
func InlinePrintingXML ¶
func ReadASingleValueInFile ¶ added in v1.2.11
func ReadGzFile ¶ added in v1.2.14
func ReadOnFile ¶
func RemoveTabAndEnter ¶
Types ¶
type Logging ¶
type Logging struct { LogPath string LogLevel int LogDefault string AccessLogName string AccessErrorLogName string AccessLogFormat string AccessLogTimeFormat string AccessLogTimeZone string BroadcastLogName string CmpProcessorLogName string MoReceiverLogName string MoProcessorLogName string MtProcessorLogName string DrReceiverLogName string DrProcessorLogName string ChargingLogName string RetryLogName string PortalLogName string TrxLogName string LogThread string LogFileName string LogFileErr string LogBehaviour bool }
func (*Logging) GetStringPathLog ¶
Used to define a full path of a log
Click to show internal directories.
Click to hide internal directories.