matthewmueller/joy

Eliminate unuses struct values

Open

#49 aperta il 1 nov 2017

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Go (34 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (1317 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

This would be a nice enhancement. For example, in Go the proper way to represent an "" tag would be something like this:

type A struct {
	Class string
	Href string
	Title string
}

However, having all the possible fields of an <a> tag is wasteful, we can do better than this by only including the properties we're going to use.

Guida contributor