Skip to content

Conversation

@funrun11
Copy link

@funrun11 funrun11 commented Jul 7, 2016

  • New "layout" option defines what layout to use to format dates
    Like:
    Date time.Date url:"date,layout,2006-01-02"

This change is Reviewable

* New "layout" option defines what layout to use to format dates
 Like:
 	Date    time.Date    `url:"date,layout,2006-01-02"`
@willnorris
Copy link
Collaborator

I ended up implementing this using a separate struct tag:

StartDate time.Time `url:"start_date,omitempty" layout:"2006-01-02"`

But thanks for the suggestion (almost five years later! 😄 )

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