Closed zbindenren closed 10 years ago
What is the source of the Updated
field? Computer generated or User? If it is computer, you could use int64
with time.Now().Unix()
@zbindenren Is this still an issue with the latest HEAD? You've described this pretty well, I just have to make a few moments to dig in deeper. Anyone else have any idea? (I haven't used binding with time fields yet.)
Deferring until this issue re-surfaces or we hear from the opener again.
For Json Posts I have the following Type:
The binding works perfectly. But when I set for the
time.Time
struct therequired
field tag withbinding:"required
I a get a panic:This line is the problem:
I know the what the problem is, but not really a good, general way to solve this. The problem is that the
time.Time
struct does have no exported fields, just methods:And then the following line of code does not work:
Maybe someone has a good idea how to fix this.