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
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.
Great open source DB tools, financial assistance, and general support!
Meeting space, beverages, food
Excellent food and beverages
Meetup space and financial support
1,697 Action Designers
217 Erlang Enthusiasts
I started the group because there wasn't any other type of group like this. I've met some great folks in the group who have become close friends and have also met some amazing business owners.
— Bill, started New York City Gay Craft Beer Lovers
Meetup members, Log in