...

Package format

import "k8s.io/kubernetes/test/utils/format"
Overview
Index

Overview ▾

Package format is an extension of Gomega's format package which improves printing of objects that can be serialized well as YAML, like the structs in the Kubernetes API.

Just importing it is enough to activate this special YAML support in Gomega.

func Object

func Object(object interface{}, indentation uint) string

Object makes Gomega's format.Object available without having to import that package.