Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setting a default value to datetime #758

Merged
merged 2 commits into from
Sep 5, 2016
Merged

Conversation

ikawaha
Copy link
Contributor

@ikawaha ikawaha commented Sep 3, 2016

issue #726

@@ -89,4 +107,8 @@ if ut.Foo == nil {
hashAssignmentCode = `if ut.Foo == nil {
ut.Foo = map[string]string{"bar": "baz"}
}`
datetimeAssignmentCode = `var defaultFoo, _ = time.Parse(time.RFC3339, "1978-06-30T10:00:00+09:00")

This comment was marked as off-topic.

@raphael
Copy link
Member

raphael commented Sep 5, 2016

This is great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants