matthewmueller/joy

Eliminate unuses struct values

Open

#49 opened on Nov 1, 2017

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Go (34 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (1,317 stars)
PR merge metrics
 (PR metrics pending)

Description

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