diff --git a/Makefile b/Makefile index c35170d..d78ea40 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,10 @@ cover: ## Run the tests. @go test -coverprofile=coverage.o @go tool cover -func=coverage.o +.PHONY: generate +generate: ## Run go generate + @go generate ./... + .PHONY: build build: ## Build example command lines. ./_example/build.sh diff --git a/key.go b/key.go index 068b70e..7ba569c 100644 --- a/key.go +++ b/key.go @@ -1,9 +1,10 @@ -// Code generated "This is a fake comment to avoid golint errors"; DO NOT EDIT. -// FIXME: This is a little bit stupid, but there are many public constants which is no value for writing godoc comment. +// Code generated by hand; DO NOT EDIT. +// This is a little bit stupid, but there are many public constants which is no value for writing godoc comment. package prompt // Key is the type express the key inserted from user. +//go:generate stringer -type=Key type Key int // ASCIICode is the type contains Key and it's ascii byte array.