matthewmueller/joy

Eliminate unuses struct values

Open

#49 geöffnet am 1. Nov. 2017

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (34 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (1.317 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide