mirror of
https://github.com/6543/go-hexcolor
synced 2024-12-22 09:45:04 +00:00
add Makefile & update README
This commit is contained in:
parent
e2d3f41734
commit
37a28e401f
26
Makefile
Normal file
26
Makefile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
go clean -i ./...
|
||||||
|
|
||||||
|
.PHONY: fmt
|
||||||
|
fmt:
|
||||||
|
go fmt *.go
|
||||||
|
|
||||||
|
.PHONY: vet
|
||||||
|
vet:
|
||||||
|
go vet github.com/6543/go-hexcolor
|
||||||
|
|
||||||
|
.PHONY: misspell
|
||||||
|
misspell:
|
||||||
|
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||||
|
GO111MODULE=off $(GO) get -u github.com/client9/misspell/cmd/misspell; \
|
||||||
|
fi
|
||||||
|
misspell -w *
|
||||||
|
|
||||||
|
.PHONY: test
|
||||||
|
test:
|
||||||
|
go test
|
||||||
|
|
||||||
|
.PHONY: vendor
|
||||||
|
vendor:
|
||||||
|
GO111MODULE=on; go mod tidy && go mod vendor
|
@ -1,6 +1,8 @@
|
|||||||
# Hex Color Library for Go
|
# Hex Color Library for Go
|
||||||
|
|
||||||
|
## Features:
|
||||||
|
* Normalize/Parse hex color
|
||||||
|
* convert from/to color.RGBA
|
||||||
|
|
||||||
## ToDo
|
## ToDo
|
||||||
* [ ] Normalize/Parse function
|
|
||||||
* [ ] Some Convert func
|
|
||||||
* [ ] Predefine standard colors (red, blue, ... based on CSS colors)
|
* [ ] Predefine standard colors (red, blue, ... based on CSS colors)
|
||||||
|
Loading…
Reference in New Issue
Block a user