ToString() is available in the Go target (commonly referred to as "Golang" in order to appease web search engines) for a token--actually BaseToken--as "String()". It's not clear why it's missing from Token. In C# or Java, every object has ToString() available, accomplished without doing a type cast. Token.String() should be an exported function.
ToString() is available in the Go target (commonly referred to as "Golang" in order to appease web search engines) for a token--actually BaseToken--as "String()". It's not clear why it's missing from Token. In C# or Java, every object has ToString() available, accomplished without doing a type cast. Token.String() should be an exported function.