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

flag.CommandLine.Output undefined #7

Closed
abspython opened this issue Apr 15, 2019 · 0 comments · Fixed by #8
Closed

flag.CommandLine.Output undefined #7

abspython opened this issue Apr 15, 2019 · 0 comments · Fixed by #8

Comments

@abspython
Copy link

abspython commented Apr 15, 2019

I got an error while building the corrupter. The error output is ..

abspython@CutePieMarzia:~/corrupter$ go build main.go 
# command-line-arguments
./main.go:48: flag.CommandLine.Output undefined (type *flag.FlagSet has no field or method Output, but does have flag.output)
./main.go:49: flag.CommandLine.Output undefined (type *flag.FlagSet has no field or method Output, but does have flag.output)

So I have looked and found a solution. I changed flag.CommandLine.Ouput to os.Stderr in line 48 and 49. Now it had build successfully and run well.

I want to ask whether the above change is going to affect my performance or may break the program.
Also, I'm using Debian Stretch with i3wm as DisplayManger.

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

Successfully merging a pull request may close this issue.

1 participant