Is this an assignment? Do you really need the intermediary step?
https://go.dev/play/p/sLwn0rL9Wij
#Decimalise an ASCII-encoded String
10 messages · Page 1 of 1 (latest)
Int64, not uint64, and it isn't an assignmnet
But, no, I don't need the middle step if there is a faster way to do it without
Was mainly just trying to make it as fast as possible
I know I can just do:
int64(binary.BigEndian.Uint64([]byte("Zenyaria")))
However, I was wondering if there is a way to directly convert
ASCII -> int64, or is the fastest way something I have to just code myself?
what int64 value would the string "Was mainly just trying to make it as fast as possible" encode to?
good point
14787458251696097395283569644247065427524068782975909149501617218683702702543803070335732415007071488185369809976798984108403813 would be the intended output, but yeah, I get your point. Probably better to handle everything in binary regardless (?)
I don't understand what the goal is here, it seems you've understood "ascii -> int64" is not well defined, but I don't see the overall point of this
just a dumb idea for a form of user id that I didn't think about at all- storing a name inside the epoche of the date of a created user