Documentation ¶
Index ¶
- Constants
- func AddSeconds(secs int64) string
- func CalculateSecs(s string) int64
- func Call(funcName interface{}, params []interface{}) []reflect.Value
- func CallFunc(funcName interface{}, params ...interface{}) []reflect.Value
- func CallRefs(funcName interface{}, params []interface{}) []reflect.Value
- func ConvertDate(date time.Time, days int, format string) string
- func ConvertMonth(date string) string
- func ConvertSeconds(seconds int64, days int) string
- func ConvertSecondsFormat(secs int64, days int, format string) string
- func ConvertTime(date time.Time, days int, format string) string
- func ConvertTimeDigit(date time.Time, days int) string
- func ConvertUrl(reqUrl string, headers http.Header) string
- func CreateFile(name string, data []byte, paths ...string) string
- func DateOffset(date string) int
- func DateOffsetString(date string) string
- func GetCustomDays(date string, cs int) string
- func GetCustomDaysFormat(date string, cs int, format string) string
- func GetDate(days int) string
- func GetDateFormat(days int, format string) string
- func GetDirList(path string) ([]string, error)
- func GetFiles(path, wildcard string) []string
- func GetHour() int
- func GetLastMonth(date string) string
- func GetLastMonthFormat(date, format string) string
- func GetLastWeek(date string) string
- func GetLastWeekFormat(date string, format string) string
- func GetMillisecond() string
- func GetSeconds() string
- func GetTime(days int) string
- func GetTimeDigit(days int) string
- func GetTimeFormat(days int, format string) string
- func GetTimestamp(days int) string
- func GetYesterday(date string) string
- func GetYesterdayFormat(date string, format string) string
- func Millisecond() int64
- func RequestHttp(reqUrl, method string, a, h, msg []byte) ([]byte, int, http.Header)
- func RunHttpServer(handler http.HandlerFunc, httpPort, readTimeout, writeTimeout int, ...)
- func Seconds() int64
- func Timestamp(days int) int64
Constants ¶
View Source
const ( YearSecs = 31536000 MonthSecs = 2592000 DaySecs = 86400 HourSecs = 3600 MinSecs = 60 OneSec = 1 )
View Source
const ( AUTHORIZATION = "Authorization" BASIC = "Basic" )
Variables ¶
This section is empty.
Functions ¶
func AddSeconds ¶
func CalculateSecs ¶
func ConvertMonth ¶
func ConvertSeconds ¶
func DateOffset ¶
func DateOffsetString ¶
func GetCustomDays ¶
func GetDateFormat ¶
func GetDirList ¶
func GetLastMonth ¶
func GetLastMonthFormat ¶
func GetLastWeek ¶
func GetLastWeekFormat ¶
func GetMillisecond ¶
func GetMillisecond() string
func GetSeconds ¶
func GetSeconds() string
func GetTimeDigit ¶
func GetTimeFormat ¶
func GetTimestamp ¶
func GetYesterday ¶
func GetYesterdayFormat ¶
func Millisecond ¶
func Millisecond() int64
func RequestHttp ¶
func RunHttpServer ¶
func RunHttpServer(handler http.HandlerFunc, httpPort, readTimeout, writeTimeout int, quit chan int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.