package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Sep 7, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const DefaultLayout = "2006-01-02T15:04:05.000Z07:00"
DefaultLayout 是 goark-log 统一的默认时间格式。
JavaToGo 把常用 Java 日期占位符转换为 Go reference time 布局。
UnixMode 标识时间格式是否需要输出 Unix 时间戳。
const (
UnixNone UnixMode = iota
UnixSeconds
UnixMillis
UnixMicros
UnixNanos
)
Normalize 把 Log4j/Java 风格时间格式映射为 Go 时间布局或 Unix 输出模式。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.