I list the code from the book "Programming in Go". I test it but it didn't work well.
error: "not enough arguments in call to BitFlag.String"
Goplayground Code: http://play.golang.org/p/FG23LdS_xK
type BitFlag int
func main() {
flag := Active | Send
BitFlag.String();
}
func (flag BitFlag) String() string {
...
}
Why do I see this error message?