fix
This commit is contained in:
11
pkg/tools/time/time.go
Normal file
11
pkg/tools/time/time.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package time
|
||||
|
||||
import "time"
|
||||
|
||||
func MustParse(layout, value string) time.Time {
|
||||
t, err := time.Parse(layout, value)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return t
|
||||
}
|
||||
Reference in New Issue
Block a user