aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorHiroaki Sano <hiroaki.sano.9stories@gmail.com>2020-01-27 23:20:23 +0900
committerHiroaki Sano <hiroaki.sano.9stories@gmail.com>2020-01-27 23:54:13 +0900
commit7fc55ca2e5d11ffe399751519ae4dd24bf1fdb9e (patch)
tree11d41269dd60e4fdfdef71c948eb93be282571c3 /template
parent0a50049b8b828c3235f80ecc2c95b936376cf763 (diff)
downloadvim-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.go1
-rw-r--r--template/go/snip-time-format-yyyymmddHHMMss-micro.go1
-rw-r--r--template/go/snip-time-format-yyyymmddHHMMss-milli.go1
-rw-r--r--template/go/snip-time-format-yyyymmddHHMMss-nano.go1
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"