tvl-depot/tools/gotest/main.go
Vincent Ambo 1619f58d78 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.
2019-11-22 16:28:22 +00:00

16 lines
299 B
Go

// This program just exists to import some libraries and demonstrate
// that the build works, it doesn't do anything useful.
package main
import (
"fmt"
"somelib"
"someproto"
)
func main() {
p := someproto.Person{
Name: somelib.Name(),
}
fmt.Println(somelib.Greet(fmt.Sprintf("%v", p)))
}