package p4go import ( "fmt" "testing" ) func TestListClientsForUser(t *testing.T) { dao, err := AllocAndConnect("gotest", "commonsadmin", "commonsadmin", "localhost:1666", "testing") if err != nil { t.Errorf("connect failed: %s\n", err.Error()) t.FailNow() } clients, err := dao.ListClientsForUser("user") if err != nil { t.Errorf("list clients failed: %s\n", err.Error()) t.FailNow() } for _, client := range clients { fmt.Printf("client id: %s\n", client["client"]) } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 10513 | tjuricek |
A basic experiment with using the C++ API in Go May not work completely. I haven't messed with this in over a year. The Go tools may have come a long ways as well, and we may be able to automate things more directly in the typical toolkit then having to use node. |