All of the code provided runs as expected for me - what’s the issue ?

> On Jan 11, 2019, at 3:07 PM, T L <tapir....@gmail.com> wrote:
> 
> The reason is the name value is not assigned to string (the built-in type).
> It is assigned to interace{}. Please read the docs of fmt.Println for details.
> 
> On Friday, January 11, 2019 at 4:54:12 PM UTC-4, 伊藤和也 wrote:
> type name string
> 
> /*func (n name) upper() string {
>    return strings.ToUpper(string(n))
> }
> 
> func (n name) lower() string {
>    return strings.ToLower(string(n))
> }*/
> 
> func main() {
>    fmt.Println(name("john"))
> }
> 
> -- 
> 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 
> <mailto:golang-nuts+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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.

Reply via email to