telnet.go has this code
gender := "Male"
if p.Gender == 2 {
gender = "Female"
}
which imagines a system where 1=Male, 2=Female
but, in api.go you have
switch g {
case 0:
return "Male"
case 1:
return "Female"
default:
return "Unknown"
}
}
which is 0 and 1 instead
telnet.go has this code
which imagines a system where 1=Male, 2=Female
but, in api.go you have
which is 0 and 1 instead