feat:Code generation upgrade(#173)
This commit is contained in:
1 parent
8c554d7ee7
commit
ca62b4ef1d
8 files changed
+86
-16
No files matched your search
@@ -17,6 +17,10 @@ func StringToInt(e string) (int, error) {
|
||||
return strconv.Atoi(e)
|
||||
}
|
||||
|
||||
func StringToBool(e string) (bool, error) {
|
||||
return strconv.ParseBool(e)
|
||||
}
|
||||
|
||||
func GetCurrentTimeStr() string {
|
||||
return time.Now().Format("2006/01/02 15:04:05")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user