Documentation ¶
Overview ¶
Package hexcolor is a simple hexcolor normalizer
Installation
go get -u github.com/6543/go-hexcolor
Example
```go package main import ( "fmt" "github.com/6543/go-hexcolor" ) func main() { c, err := hexcolor.NewHexColor("#adf") if err != nil { panic(err) } fmt.Println(c.ToString()) } ```
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HexColor ¶
type HexColor struct {
// contains filtered or unexported fields
}
HexColor represents a single hex color
func NewHexColor ¶
NewHexColor convert string into a HexColor
Click to show internal directories.
Click to hide internal directories.