Add String() methods to ImageID, ContainerID, and UnparsedURL. Replace all string() casts with .String() method calls throughout the codebase for cleaner interface compliance.
14 lines
351 B
Go
14 lines
351 B
Go
package docker
|
|
|
|
// ImageID is a Docker image identifier (ID or tag).
|
|
type ImageID string
|
|
|
|
// String implements fmt.Stringer.
|
|
func (id ImageID) String() string { return string(id) }
|
|
|
|
// ContainerID is a Docker container identifier.
|
|
type ContainerID string
|
|
|
|
// String implements fmt.Stringer.
|
|
func (id ContainerID) String() string { return string(id) }
|