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
30.5 Days
Nov 19, 2006
go is fuckin good

Adbot
ADBOT LOVES YOU

30.5 Days
Nov 19, 2006
If you’re doing that direction you could also check our charm.sh

30.5 Days
Nov 19, 2006
Naw I'm not that cool lol

30.5 Days
Nov 19, 2006
Auto updating all my packages everytime I add one is generally not what I want

30.5 Days
Nov 19, 2006
I would try doing go install with GitHub instead of their custom path. Their path almost certainly just proxies through to GitHub. I don't know why people do that.

Adbot
ADBOT LOVES YOU

30.5 Days
Nov 19, 2006

cruft posted:

Can some kind soul help me out here

code:
type Attendee struct {
	Email string
	Username string
}

type AttendeeList struct {
	Attendees []Attendee
	ByEmail map[string]Attendee
	ByUsername map[string]Attendee
}
Should I make the Attendee members of AttendeeList pointers?

I'm pretty sure the actual answer is "LOL it's not 1987 you have enough RAM to not care", but it's the principle of the thing, you see.

If you will be rearranging the list a lot then making it pointers will make it run faster, if you will be iterating over the list a lot then making it not pointers will make it run faster.

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