wire up example by way of testing
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user