Go sometimes cannot unmarshal timestamp #3
|
@ -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"`
|
||||
|
|
Reference in New Issue
Block a user