import ( "fmt" "github.com/hashicorp/nomad/api" ) func main() { // Create a new Nomad API client client, err := api.NewClient(api.DefaultConfig()) if err != nil { panic(err) } // Query for the job with the given ID and retrieve its Job struct jobID := "example-job" job, _, err := client.Jobs().Info(jobID, &api.QueryOptions{}) if err != nil { panic(err) } // Print the name and task count for the retrieved job fmt.Printf("Job name: %s\n", job.Name) fmt.Printf("Task count: %d\n", len(job.TaskGroups[0].Tasks)) }In this example, we use the `Info` method from the Nomad API client's `Jobs` sub-package to retrieve the `Job` struct for a particular job ID. We then print the job's name and the number of tasks it contains. Overall, the `structs` package in the `github.com/hashicorp/nomad/nomad` library provides structs for representing various configuration and data objects used in the Nomad cluster scheduler.