mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
remove pkg/stringid as it has moved to the client module
pkg/stringid moved to github.com/moby/moby/client/pkg/stringid, and the 28.4 transitional releasee will provide an alias for those that use github.com/docker/docker as dependency, so we can remove the alias for the moby module. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
// Package stringid provides helper functions for dealing with string identifiers.
|
||||
package stringid
|
||||
|
||||
import "github.com/moby/moby/client/pkg/stringid"
|
||||
|
||||
// TruncateID returns a shorthand version of a string identifier for presentation.
|
||||
//
|
||||
// Deprecated: use [stringid.TruncateID]. This package will be removed in the next release.
|
||||
func TruncateID(id string) string {
|
||||
return stringid.TruncateID(id)
|
||||
}
|
||||
|
||||
// GenerateRandomID returns a unique, 64-character ID consisting of a-z, 0-9.
|
||||
//
|
||||
// Deprecated: use [stringid.GenerateRandomID]. This package will be removed in the next release.
|
||||
func GenerateRandomID() string {
|
||||
return stringid.GenerateRandomID()
|
||||
}
|
||||
Reference in New Issue
Block a user