r00tman / corrupter

Simple image glitcher suitable for producing nice looking lockscreens

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flag.CommandLine.Output undefined

abspython opened this issue · comments

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.