mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
github.com/vburenin/ifacemaker
This commit is contained in:
parent
2ac0d444bd
commit
fab940e591
2 changed files with 34 additions and 0 deletions
10
projects/github.com/vburenin/ifacemaker/human.go
Normal file
10
projects/github.com/vburenin/ifacemaker/human.go
Normal file
|
@ -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
|
||||
}
|
24
projects/github.com/vburenin/ifacemaker/package.yml
Normal file
24
projects/github.com/vburenin/ifacemaker/package.yml
Normal file
|
@ -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"
|
Loading…
Reference in a new issue