utils/resolver.go
func (n ImageName) String() string {
	buf := bytes.Buffer{}
	if n.Registry != "" {
		buf.WriteString(n.Registry)
		buf.WriteString("/")
	}
	if n.Repository != "" {
		buf.WriteString(n.Repository)
		buf.WriteString("/")
	}
	buf.WriteString(n.Name)
	if n.Digest != "" {
		buf.WriteString("@")
		buf.WriteString(n.Digest)
	} else {
		buf.WriteString(":")
		buf.WriteString(n.Tag)
	}
	return buf.String()
}
func (n ImageName) String() string {
	buf := bytes.Buffer{}
	if n.Registry != "" {
		buf.WriteString(n.Registry)
		buf.WriteString("/")
	}
	if n.Repository != "" {
		buf.WriteString(n.Repository)
		buf.WriteString("/")
	}
	buf.WriteString(n.Name)
	if n.Digest != "" {
		buf.WriteString("@")
		buf.WriteString(n.Digest)
	} else {
		buf.WriteString(":")
		buf.WriteString(n.Tag)
	}
	return buf.String()
}
func ( n ImageName ) String ( ) string { buf := bytes . Buffer { } if n . Registry != " " { buf . WriteString ( n . Registry ) buf . WriteString ( " " ) } if n . Repository != " " { buf . WriteString ( n . Repository ) buf . WriteString ( " " ) } buf . WriteString ( n . Name ) if n . Digest != " " { buf . WriteString ( " " ) buf . WriteString ( n . Digest ) } else { buf . WriteString ( " " ) buf . WriteString ( n . Tag ) } return buf . String ( ) }
// String implements the Stringer interface
String implements the Stringer interface