1
0
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:
6543 2020-09-10 23:13:31 +02:00
parent e2d3f41734
commit 37a28e401f
Signed by: 6543
GPG Key ID: A1CA74D27FD13271
2 changed files with 30 additions and 2 deletions

26
Makefile Normal file
View 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

View File

@ -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)