Go sometimes cannot unmarshal timestamp #3

Merged
jolheiser merged 1 commits from timestamp into master 2020-10-03 02:46:09 +00:00

View File

@ -1,11 +1,9 @@
package hcaptcha
import "time"
// Response is an hCaptcha response
type Response struct {
Success bool `json:"success"`
ChallengeTS time.Time `json:"challenge_ts"`
ChallengeTS string `json:"challenge_ts"`
Hostname string `json:"hostname"`
Credit bool `json:"credit,omitempty"`
ErrorCodes []ErrorCode `json:"error-codes"`