FAQ
Is there any way to *statically *reference a type or member?

Something like a typeof() operator or something?

I realize something like reflect.TypeOf(Foo{}).FieldByName("xyz") is
possible, but the field-name can't be checked at compile-time...

Any other alternatives?

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 76 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJan 1, '14 at 12:55a
activeJan 14, '14 at 4:39a
posts76
users15
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase