.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.1.1 / staticcheck / testdata / src / CheckTimeParse / CheckTimeParse.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/staticcheck/testdata/src/CheckTimeParse/CheckTimeParse.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/staticcheck/testdata/src/CheckTimeParse/CheckTimeParse.go
new file mode 100644 (file)
index 0000000..246aac0
--- /dev/null
@@ -0,0 +1,14 @@
+package pkg
+
+import "time"
+
+const c1 = "12345"
+const c2 = "2006"
+
+func fn() {
+       time.Parse("12345", "") // want `parsing time`
+       time.Parse(c1, "")      // want `parsing time`
+       time.Parse(c2, "")
+       time.Parse(time.RFC3339Nano, "")
+       time.Parse(time.Kitchen, "")
+}