Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
minato
Jun 7, 2004

cutty cain't hang, say 7-up.
Taco Defender
Go's strengths are in system programming; writing simple servers and file processors. There's very little support for anything GUI, sound, or realtime like you'd want for an emulator. Anything like that you'd probably have to write in C and link in to Go, defeating the purpose of the exercise.

I'd at least try something a little less ambitious first just to get a feel for the language. A URL-shortener is a good example. It's a server, needs a simple UI, some minor config, and needs to talk to either a SQL or key/value storage engine. So you'd learn about:
- the net/http package for the server
- html/template for rendering web pages
- optionally gRPC if you want to offer a programmatic API
- reading and parsing config files
- Google's flags package for handling CLI flags
- The SQL interface + sqlite3 for a backend storage engine, or boltdb if you want to use a durable key/value store.

And the program itself is relatively straightforward to write.

Adbot
ADBOT LOVES YOU

minato
Jun 7, 2004

cutty cain't hang, say 7-up.
Taco Defender
It's great in a devops space because compiling to a statically-linked binary makes deployment dead easy. No need to faff about with containers to bundle up (say) Python and all its deps.

minato
Jun 7, 2004

cutty cain't hang, say 7-up.
Taco Defender

Riven posted:

to basically have Russ Meyer go,
I think you have the names mixed up. Russ Meyer was all about tits. Russ Cox is an rear end.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply