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