As I try to take a command line argument of type uint64, when I am setting default value to a valid unsigned 64 bit number, I am getting following compilation error.
Compilation Error: Expression type mismatch, the expected type is uint64 less... It highlights the number 5000 here indicating that's not an acceptable value.
Code:
var golferInstance uint64
flag.Uint64Var(&golferInstance, "inst", 5000, "Golfer Instance ID, this should be Globaly Unique ")
flag.Parse()
I don't see anything wrong with above declaration, then why is the compilation error ??
What am I missing here? (i believe must be something silly that i fail to make out) Any help is appreciated.
Thanks