func init() { … } // Object makes Gomega's [format.Object] available without having to import that // package. func Object(object interface{ … } // handleYAML formats all values as YAML where the result // is likely to look better as YAML: // - pointer to struct or struct where all fields // have `json` tags // - slices containing such a value // - maps where the key or value are such a value func handleYAML(object interface{ … } func useYAML(t reflect.Type) bool { … }