config/template.go
func (c *TemplateConfig) Display() string {
	if c == nil {
		return ""
	}

	source := c.Source
	if StringPresent(c.Contents) {
		source = String("(dynamic)")
	}

	return fmt.Sprintf("%q => %q",
		StringVal(source),
		StringVal(c.Destination),
	)
}
func (c *TemplateConfig) Display() string {
	if c == nil {
		return ""
	}

	source := c.Source
	if StringPresent(c.Contents) {
		source = String("(dynamic)")
	}

	return fmt.Sprintf("%q => %q",
		StringVal(source),
		StringVal(c.Destination),
	)
}
func ( c * TemplateConfig ) Display ( ) string { if c == nil { return " " } source := c . Source if StringPresent ( c . Contents ) { source = String ( " " ) } return fmt . Sprintf ( " " , StringVal ( source ) , StringVal ( c . Destination ) , ) }
// Display is the human-friendly form of this configuration. It tries to
// describe this template in as much detail as possible in a single line, so
// log consumers can uniquely identify it.
Display is the human - friendly form of this configuration . It tries to describe this template in as much detail as possible in a single line so log consumers can uniquely identify it .