From fab940e5911d7a76be03c55c68c399c0b38224d7 Mon Sep 17 00:00:00 2001 From: andrejrabcenko Date: Thu, 27 Jul 2023 17:04:37 +0300 Subject: [PATCH] github.com/vburenin/ifacemaker --- .../github.com/vburenin/ifacemaker/human.go | 10 ++++++++ .../vburenin/ifacemaker/package.yml | 24 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 projects/github.com/vburenin/ifacemaker/human.go create mode 100644 projects/github.com/vburenin/ifacemaker/package.yml diff --git a/projects/github.com/vburenin/ifacemaker/human.go b/projects/github.com/vburenin/ifacemaker/human.go new file mode 100644 index 00000000..c64aabc8 --- /dev/null +++ b/projects/github.com/vburenin/ifacemaker/human.go @@ -0,0 +1,10 @@ +package main + +type Human struct { + name string +} + +// Returns the name of our Human. +func (h *Human) GetName() string { + return h.name +} \ No newline at end of file diff --git a/projects/github.com/vburenin/ifacemaker/package.yml b/projects/github.com/vburenin/ifacemaker/package.yml new file mode 100644 index 00000000..c8aebb7e --- /dev/null +++ b/projects/github.com/vburenin/ifacemaker/package.yml @@ -0,0 +1,24 @@ +distributable: + url: https://github.com/vburenin/ifacemaker/archive/v{{version}}.tar.gz + strip-components: 1 +versions: + github: vburenin/ifacemaker/tags +build: + dependencies: + go.dev: '*' + script: + - go build $ARGS -ldflags="$LDFLAGS" + env: + ARGS: + - -trimpath + - -o={{prefix}}/bin/ifacemaker + LDFLAGS: + - -s + - -w +provides: + - bin/ifacemaker +test: + script: | + ifacemaker -f human.go -s Human -i HumanIface -p humantest \ + -y "HumanIface makes human interaction easy" \ + -c "DONT EDIT: Auto generated" | grep "type HumanIface interface"