On Wed, 10 May 2017 10:05:56 -0700 (PDT) Zachary Kaplan <ra...@viralkitty.com> wrote:
> can somebody please explain to me when a function > should to return a string as opposed to, say a []byte? thanks > Just a few examples. Strings can be keys in map[string]something, []byte can't be a key due to them are non comparable. You can loop over letters/rune in word with "for range 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.