diff options
author | Hiroaki Sano <hiroaki.sano.9stories@gmail.com> | 2020-01-27 23:20:23 +0900 |
---|---|---|
committer | Hiroaki Sano <hiroaki.sano.9stories@gmail.com> | 2020-01-27 23:54:13 +0900 |
commit | 7fc55ca2e5d11ffe399751519ae4dd24bf1fdb9e (patch) | |
tree | 11d41269dd60e4fdfdef71c948eb93be282571c3 /template | |
parent | 0a50049b8b828c3235f80ecc2c95b936376cf763 (diff) | |
download | vim-sonictemplate-7fc55ca2e5d11ffe399751519ae4dd24bf1fdb9e.tar.gz vim-sonictemplate-7fc55ca2e5d11ffe399751519ae4dd24bf1fdb9e.tar.bz2 vim-sonictemplate-7fc55ca2e5d11ffe399751519ae4dd24bf1fdb9e.zip |
Add time format for go
Diffstat (limited to 'template')
-rw-r--r-- | template/go/snip-time-date.go | 1 | ||||
-rw-r--r-- | template/go/snip-time-format-yyyymmddHHMMss-micro.go | 1 | ||||
-rw-r--r-- | template/go/snip-time-format-yyyymmddHHMMss-milli.go | 1 | ||||
-rw-r--r-- | template/go/snip-time-format-yyyymmddHHMMss-nano.go | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/template/go/snip-time-date.go b/template/go/snip-time-date.go new file mode 100644 index 0000000..664ebf4 --- /dev/null +++ b/template/go/snip-time-date.go @@ -0,0 +1 @@ +tm := time.Date(2006, time.January, 2, 15, 4, 5, 0, time.Local) diff --git a/template/go/snip-time-format-yyyymmddHHMMss-micro.go b/template/go/snip-time-format-yyyymmddHHMMss-micro.go new file mode 100644 index 0000000..833f945 --- /dev/null +++ b/template/go/snip-time-format-yyyymmddHHMMss-micro.go @@ -0,0 +1 @@ +"2006/01/02 15:04:05.000000" diff --git a/template/go/snip-time-format-yyyymmddHHMMss-milli.go b/template/go/snip-time-format-yyyymmddHHMMss-milli.go new file mode 100644 index 0000000..b4fba80 --- /dev/null +++ b/template/go/snip-time-format-yyyymmddHHMMss-milli.go @@ -0,0 +1 @@ +"2006/01/02 15:04:05.000" diff --git a/template/go/snip-time-format-yyyymmddHHMMss-nano.go b/template/go/snip-time-format-yyyymmddHHMMss-nano.go new file mode 100644 index 0000000..cb9c57b --- /dev/null +++ b/template/go/snip-time-format-yyyymmddHHMMss-nano.go @@ -0,0 +1 @@ +"2006/01/02 15:04:05.000000000" |