wire up example by way of testing

This commit is contained in:
Ben Kraft
2019-12-24 16:05:10 -05:00
parent 9a157470b3
commit 9d4b5559f4
5 changed files with 41 additions and 6 deletions
+16
View File
@@ -0,0 +1,16 @@
package example
import (
"context"
"fmt"
"os"
)
func Main() {
resp, err := getViewer(context.Background())
if err != nil {
fmt.Println(err)
os.Exit(1)
}
fmt.Println("you are:", resp.Viewer.Name)
}