commit
01250dcd3a
@ -0,0 +1 @@ |
||||
hmy_cli |
@ -0,0 +1,14 @@ |
||||
version=$(shell git rev-list --count HEAD)
|
||||
commit=$(shell git describe --always --long --dirty)
|
||||
built_at=$(shell date +%FT%T%z)
|
||||
built_by=${USER}
|
||||
|
||||
flags := -gcflags="all=-N -l -c 2"
|
||||
cli := hmy_cli
|
||||
|
||||
all: |
||||
printf '%s %s %s %s\n' $(version) $(commit) $(built_at) $(built_by)
|
||||
go build $(flags) -o $(cli) client/main.go
|
||||
|
||||
clean: |
||||
@rm -f $(cli)
|
@ -0,0 +1,9 @@ |
||||
package main |
||||
|
||||
import ( |
||||
"github.com/harmony-one/go-sdk/common" |
||||
) |
||||
|
||||
func main() { |
||||
common.Speak() |
||||
} |
@ -0,0 +1,11 @@ |
||||
package common |
||||
|
||||
import ( |
||||
"fmt" |
||||
) |
||||
|
||||
func Speak() { |
||||
|
||||
fmt.Println("hello ") |
||||
|
||||
} |
Loading…
Reference in new issue