[project] Init commit

pull/1/head
Edgar Aroutiounian 5 years ago
commit 01250dcd3a
  1. 1
      .gitignore
  2. 14
      Makefile
  3. 9
      client/main.go
  4. 11
      common/requests.go
  5. 3
      go.mod

1
.gitignore vendored

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

@ -0,0 +1,3 @@
module github.com/harmony-one/go-sdk
go 1.12
Loading…
Cancel
Save