()
| 120 | } |
| 121 | |
| 122 | func GetTimeString() string { |
| 123 | now := time.Now() |
| 124 | return fmt.Sprintf("%s%d", now.Format("20060102150405"), now.UnixNano()%1e9) |
| 125 | } |
| 126 | |
| 127 | func GetOrDefault(env string, defaultValue int) int { |
| 128 | if env == "" || os.Getenv(env) == "" { |