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