Example #1
0
func fmtColor(v color.Color, ok bool) *string {
	if !ok {
		return nil
	}
	r := v.String()
	return &r
}
Example #2
0
func fmtColor(v color.Color, ok bool) *string {
	if !ok {
		return nil
	}
	var r string
	r = "\"" + v.HexString() + "\""
	return &r
}