From 3db8e0e451ea37e785c42edc81075fc645315a66 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 28 Mar 2022 14:54:17 +0200 Subject: add test module --- hola/go.mod | 3 +++ hola/main.go | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 hola/go.mod create mode 100644 hola/main.go (limited to 'hola') diff --git a/hola/go.mod b/hola/go.mod new file mode 100644 index 0000000..55424a9 --- /dev/null +++ b/hola/go.mod @@ -0,0 +1,3 @@ +module git.sigsum.org/testing/hola + +go 1.17 diff --git a/hola/main.go b/hola/main.go new file mode 100644 index 0000000..3e868ca --- /dev/null +++ b/hola/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "log" +) + +func main() { + log.Printf("hola") +} -- cgit v1.2.3 From 8be06133b33637ae060529123ca4b598f0baa7d1 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 28 Mar 2022 14:57:04 +0200 Subject: bring in sigsum-lib-go as dep --- hola/go.mod | 2 ++ hola/go.sum | 2 ++ hola/main.go | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 hola/go.sum (limited to 'hola') diff --git a/hola/go.mod b/hola/go.mod index 55424a9..e1ae029 100644 --- a/hola/go.mod +++ b/hola/go.mod @@ -1,3 +1,5 @@ module git.sigsum.org/testing/hola go 1.17 + +require git.sigsum.org/sigsum-lib-go v0.0.2 // indirect diff --git a/hola/go.sum b/hola/go.sum new file mode 100644 index 0000000..03ffc2d --- /dev/null +++ b/hola/go.sum @@ -0,0 +1,2 @@ +git.sigsum.org/sigsum-lib-go v0.0.2 h1:1FwdnraPaasw1D1Lb+flRMJRGLTuZrp17AZ6tx+iT/0= +git.sigsum.org/sigsum-lib-go v0.0.2/go.mod h1:DVmlcf0MBHy4IZdnZ5DcbsKkGEd0EkOAoLINhLgcndY= diff --git a/hola/main.go b/hola/main.go index 3e868ca..f1d34e4 100644 --- a/hola/main.go +++ b/hola/main.go @@ -2,8 +2,10 @@ package main import ( "log" + + "git.sigsum.org/sigsum-lib-go/pkg/hex" ) func main() { - log.Printf("hola") + log.Printf("hola: %s", hex.Serialize([]byte{0,1,2,3})) } -- cgit v1.2.3