github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/swarmkit/identity/combined_id.go (about) 1 package identity 2 3 import "fmt" 4 5 // CombineTwoIDs combines the given IDs into a new ID, e.g. a secret and a task ID. 6 func CombineTwoIDs(id1, id2 string) string { 7 return fmt.Sprintf("%s.%s", id1, id2) 8 }