1
0

」 feat: Finished wordpress/php container

This commit is contained in:
2025-01-15 22:06:40 +01:00
parent 9f8cf6b3ea
commit 89e5921175
13 changed files with 348 additions and 29 deletions

23
srcs/internal/env/env_set.go vendored Normal file
View File

@ -0,0 +1,23 @@
package env
import (
"log"
"os"
"regexp"
)
func IsEnvSet(what string) bool {
env := os.Environ()
reg, err := regexp.Compile("^" + what)
if err != nil {
log.Fatal(err)
}
for _, v := range env {
if reg.MatchString(v) {
return true
}
}
return false
}