From c2c5c1770cfa3ad3adea5dee9b7ec332433cb7f3 Mon Sep 17 00:00:00 2001 From: shaoying Date: Thu, 26 Dec 2019 00:32:53 +0800 Subject: [PATCH] add go.mod --- demo/build.sh | 3 +-- go.mod | 6 +----- go.sum | 9 ++------- type.go | 2 +- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/demo/build.sh b/demo/build.sh index 88573acb..eeb1a674 100755 --- a/demo/build.sh +++ b/demo/build.sh @@ -21,11 +21,10 @@ func main() { } END - [ -f go.mod ] || go mod init + [ -f go.mod ] || go mod init ${PWD##**/} [ -f Makefile ] || cat >> Makefile <%s %s%s %s%s\n", - time.Now().Format(ICE_TIME), m.code, m.source.Name, m.target.Name, + m.time.Format(ICE_TIME), m.code, m.source.Name, m.target.Name, prefix, level, str, suffix) return m }