commit
e818e3c1e6
4
Makefile
4
Makefile
@ -33,6 +33,10 @@ cover: ## Run the tests.
|
|||||||
@go test -coverprofile=coverage.o
|
@go test -coverprofile=coverage.o
|
||||||
@go tool cover -func=coverage.o
|
@go tool cover -func=coverage.o
|
||||||
|
|
||||||
|
.PHONY: generate
|
||||||
|
generate: ## Run go generate
|
||||||
|
@go generate ./...
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: ## Build example command lines.
|
build: ## Build example command lines.
|
||||||
./_example/build.sh
|
./_example/build.sh
|
||||||
|
5
key.go
5
key.go
@ -1,9 +1,10 @@
|
|||||||
// Code generated "This is a fake comment to avoid golint errors"; DO NOT EDIT.
|
// Code generated by hand; DO NOT EDIT.
|
||||||
// FIXME: This is a little bit stupid, but there are many public constants which is no value for writing godoc comment.
|
// This is a little bit stupid, but there are many public constants which is no value for writing godoc comment.
|
||||||
|
|
||||||
package prompt
|
package prompt
|
||||||
|
|
||||||
// Key is the type express the key inserted from user.
|
// Key is the type express the key inserted from user.
|
||||||
|
//go:generate stringer -type=Key
|
||||||
type Key int
|
type Key int
|
||||||
|
|
||||||
// ASCIICode is the type contains Key and it's ascii byte array.
|
// ASCIICode is the type contains Key and it's ascii byte array.
|
||||||
|
Loading…
Reference in New Issue
Block a user