Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protection may be nil #3

Open
steigr opened this issue Feb 22, 2018 · 0 comments
Open

Protection may be nil #3

steigr opened this issue Feb 22, 2018 · 0 comments

Comments

@steigr
Copy link

steigr commented Feb 22, 2018

ERROR: logging before flag.Parse: F0222 18:00:24.402236   77065 main.go:57] 24 error(s) decoding:

* 'domain[0].contact[admin].Protection' expected type 'int', got unconvertible type 'string'
* 'domain[0].contact[billing].Protection' expected type 'int', got unconvertible type 'string'
* 'domain[0].contact[registrant].Protection' expected type 'int', got unconvertible type 'string'
* 'domain[0].contact[tech].Protection' expected type 'int', got unconvertible type 'string'

But when i change the type to string and dump the result it's "1":

...
(string) (len=7) "billing": (goinwx.Contact) {
  ...
  Protection: (string) (len=1) "1"
}
...

Protection int

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

No branches or pull requests

1 participant