Wes will go over the
project and how he uses it for his own templates
Join or login to comment.
This is the package that Chris was talking about for easily getting an AST out of arbitrary code without breaking your neck handling transitive imports, etc.
(docs) https://godoc.org/code.google.com/p/go.tools/go/loader(code) https://code.google.com/p/go/source/browse/?repo=tools&name=default#hg%2Fgo%2Floader
And here's the package doc for the standard library AST:
1 · July 9, 2014
This is just awesome. Gives me super high hopes for Oracle and some of the new tooling.
0 · July 9, 2014
So two additional approaches to code generation for generics were batted around last night:A few calls to `gofmt -r`, probably through a semi-fancy shell script or a simple go program;using the `loader` package and some AST manipulations to identify generic code and instantiations and generating the needed instantiations.
I think the former is probably simpler, and perhaps `gofmt -r` is why Rob Pike has said words to the effect of "when I do actually need to reuse some code in a generic-like way, doing it by hand doesn't get in my way."
Wes gave a focused introduction to the lack of generics in Go and the functioning of `gen` and it was a great jumping-off point for discussion.
0 · July 8, 2014
Just a reminder that we're at Tysons (not Rosslyn). And the pizza is here!
I'm going to wait for the storm to pass. I'll be a few minutes late.
How is parking at this location?
0 · July 6, 2014
From what I hear it should be fine after hours.
Uberoffices says: "Please park in the guest spots off of Pinnacle Drive or on the street." It may be even more lax in evenings, though--Ryan will hopefully update, but I plan to drive. If anyone needs a ride from Vienna metro or something I can swing by on my way.
By the time people start showing up street parking will be plentiful. The garage will probably be pretty empty as well!
Yes, I'm expecting that after your talk, a jury of 12 experts in Ruby, python, C++, and Clojure will unanimously agree that Go now has generics :)
0 · June 11, 2014
Wow, really setting the bar high here for expectations with the title... Note that we're in a new location: Tysons vs Rosslyn uberoffices.
just a touch of link bait.
1 · June 11, 2014
Next: Invite friends
Help support your Meetup
A group focused on the Go programming language(golang). We want to learn about Golang's role in highly concurrent network services, concurrency, language design, and other related topics.
Meeting space, beverages, food
Excellent food and beverages
2,641 Android Fans
641 Scala Types
Meetup members, Log in