Thanks! I don’t know Go. How do I read this?
For example, what does this line mean?
PrivateDirectMessage = &T{14}
https://github.com/mleku/realy/blob/dev/kind/kind.go
it's not perfectly up to date but it's fairly complete... if you are working with Go it also gives you a reverse lookup so you can print human readable names for the kinds also
not really sure why i'm the only one who has made one, maybe some other language libraries have a similar table?
Thanks! I don’t know Go. How do I read this?
For example, what does this line mean?
PrivateDirectMessage = &T{14}
the number is the struct field `K` which is the kind number, the ampersand means take the pointer to the structure
i just noticed that the Equal method actually compares the structs, not the struct field, idk how that works, i didn't think in Go you could do that... gonna look closer at that
you can see that several of them i have put synonyms also, there are better names for them but they were used in code as the not so good name