Perfect. Thanks so much! - Greg
On Tuesday, October 2, 2018 at 12:13:12 PM UTC-7, Burak Serdar wrote: > > https://blog.golang.org/constants > > Foo is an untyped constant. Bar is a string. > On Tue, Oct 2, 2018 at 1:11 PM Greg Saylor <greg.sa...@gmail.com > <javascript:>> wrote: > > > > Also it would appear that foo("hello") succeeds to. > > > > - Greg > > > > > > On Tuesday, October 2, 2018 at 12:05:04 PM UTC-7, Greg Saylor wrote: > >> > >> Hello, > >> > >> I'm trying to figure out why foo(Bar) is the only one of these function > calls that fails. It seems like foo(Foo) should to? > >> > >> package main > >> > >> > >> type N string > >> > >> > >> const Foo = "foo" > >> const Bar = string("bar") > >> const Baz = N("baz") > >> > >> > >> func main() { > >> foo(Foo) > >> foo(Bar) > >> foo(Baz) > >> } > >> > >> > >> func foo(n N) { > >> } > >> > >> > >> > >> I'm sure there must be an explanation for this in the documentation but > I cannot seem to find it. > >> > >> Thanks! > >> > >> - Greg > >> > > -- > > 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...@googlegroups.com <javascript:>. > > For more options, visit 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.