Documentation
¶
Index ¶
- Constants
- func ExecShell(s string) (string, error)
- func FilePathExists(filename string) (bool, string)
- func FirstDateOfNextWeek() (weekMonday string)
- func FirstDateOfNextWeekByDate(dateStr string) (weekMonday string)
- func FirstDateOfWeek() (weekMonday string)
- func FirstDateOfWeekByDate(dateStr string) (weekMonday string)
- func FixUrlHost(host string) string
- func FixUrlPath(path string) string
- func GetFirstDateOfWeek(customDate bool, dateStr string) (weekMonday time.Time)
- func JsonFromFile(fileFullName string, v interface{}) error
- func Md5(source string) string
- func Sha1(source string) string
- func WriteToFile(fullname string, content string) bool
Constants ¶
View Source
const TimeLayout = "2006-1-2"
Variables ¶
This section is empty.
Functions ¶
func FirstDateOfNextWeek ¶
func FirstDateOfNextWeek() (weekMonday string)
func FirstDateOfWeek ¶
func FirstDateOfWeek() (weekMonday string)
var cdate = "2020-2-4" fmt.Println("first date custom date:", FirstDateOfWeekByDate(cdate)) fmt.Println("first date next week by custom date:", FirstDateOfNextWeekByDate(cdate))
func FirstDateOfWeekByDate ¶
func FixUrlHost ¶ added in v0.1.4
func FixUrlPath ¶ added in v0.1.4
func GetFirstDateOfWeek ¶
* 获取本周周一的日期
func JsonFromFile ¶ added in v0.1.3
func WriteToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.