tj/go-news

Testing again

Open

#10 opened on Oct 28, 2019

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Go (5 forks)github user discovery
Priority: Highdocumentationenhancementgood first issue

Repository metrics

Stars
 (46 stars)
PR merge metrics
 (PR metrics pending)

Description

Some more stuff 😄 .

// Parse returns the rgb parsed from a color hex string.
func Parse(s string) (r, g, b uint8) {
	m := re.FindStringSubmatch(s)
	rv, _ := strconv.ParseInt(m[1], 16, 0)
	gv, _ := strconv.ParseInt(m[2], 16, 0)
	bv, _ := strconv.ParseInt(m[3], 16, 0)
	r = uint8(rv)
	g = uint8(gv)
	b = uint8(bv)
	return
}

Some indented code:

foo
bar
baz

Contributor guide