feat(tools): Add 'gotest' program to demonstrate pkgs.buildGo
This is a tiny program that does nothing but exists to demonstrate pkgs.buildGo by building a program that depends on a local library as well as a protobuf definition.
This commit is contained in:
parent
9ea0363e6f
commit
1619f58d78
4 changed files with 63 additions and 0 deletions
11
tools/gotest/lib.go
Normal file
11
tools/gotest/lib.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package somelib
|
||||
|
||||
import "fmt"
|
||||
|
||||
func Name() string {
|
||||
return "edef"
|
||||
}
|
||||
|
||||
func Greet(s string) string {
|
||||
return fmt.Sprintf("Hello %s", s)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue