1
0
镜像自地址 https://github.com/6543/go-hexcolor 已同步 2025-07-18 16:22:56 +00:00

add Makefile & update README

这个提交包含在:
6543 2020-09-10 23:13:31 +02:00
父节点 e2d3f41734
当前提交 37a28e401f
签署人:: 6543
GPG 密钥 ID: A1CA74D27FD13271
共有 2 个文件被更改,包括 30 次插入2 次删除

26
Makefile 普通文件
查看文件

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