What is the expected behaviour for this code?
https://play.golang.org/p/tp9YNQZRMo
```
package main
import (
"fmt"
)
type char int
func (c char) String() string { return string(c) }
type st struct {
m map[int]interface{}
}
func main() {
a := char('A')
s := st{map[int]interface{}{1: a}}
fmt.Printf("%v %v", s, s.m)
}
```
I would expect both cases to print the `a` values as an 'A'.
--
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.