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

Particular reason for using fmt on variable assigment? #1

Open
lindemannrichard opened this issue Jul 4, 2014 · 2 comments
Open

Particular reason for using fmt on variable assigment? #1

lindemannrichard opened this issue Jul 4, 2014 · 2 comments

Comments

@lindemannrichard
Copy link

Particular reason for using fmt on variable assigment?

40           if newVar.Default != reflect.ValueOf(nil) {
41              fmt.Println("setting default:", newVar.Default.String())
42              newVar.SetValue(newVar.Default)
43          } else {
44              fmt.Println("No default; setting zero value")
45              newVar.SetValue(reflect.Zero(newVar.Type))
46          }
@danryan
Copy link
Owner

danryan commented Jul 11, 2014

Whoops, nope not at all. That was debug output that should've been removed before pushing. It's since been taken out of master. Sorry about that!

@lindemannrichard
Copy link
Author

Thank you!

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

2 participants