github.com/go-chef/chef@v0.30.1/testapi/universe.go (about) 1 // Test the go-chef/chef chef server api /universe endpoints against a live server 2 package testapi 3 4 import ( 5 "fmt" 6 ) 7 8 // universe exercise the chef server api 9 func Universe() { 10 // Create a client for access 11 client := Client(nil) 12 13 universe, err := client.Universe.Get() 14 if err != nil { 15 fmt.Println("Issue getting universe information", err) 16 } 17 fmt.Printf("List universe: %+v", universe) 18 }