JSON value Serialization 問題
我用negroni做api service 以下為User的model type User struct { Id int64 `db:"id"` FirstName string `db:"first_name"` LastName string `db:"last_name"` Email string `db:"email"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` } 在實作api的時候,會用json 回傳,但需要customize json的內容 ...阅读全文