I can see that site gives a gentle introduction to Go.

In Go you can define methods for your types. If your type has a method 
named String the standard library can use that method to convert the 
contents of your object to a string representation. In this particular case 
string is the return type of method String.


On Tuesday, August 29, 2017 at 1:31:17 PM UTC-3, V Cekvenich wrote:
>
> In here:
>
> func (p pair) String() string { 
>
> from https://learnxinyminutes.com/docs/go/
>
> What is string?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to