mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-06-16 05:55:33 +00:00
12 lines
205 B
Go
12 lines
205 B
Go
package docker
|
|
|
|
import "strings"
|
|
|
|
func GetDir(id, envName string) string {
|
|
|
|
if strings.Contains(envName, "$AppID") && len(id) > 0 {
|
|
return strings.ReplaceAll(envName, "$AppID", id)
|
|
}
|
|
return envName
|
|
}
|