common.go 334 B

1234567891011121314151617181920
  1. package common
  2. const (
  3. PUB_ENV_UAT = "mop-uat"
  4. PUB_ENV_PRIVATE = "mop-private"
  5. PUB_ENV_COMMUNITY = "mop-community"
  6. )
  7. func TransferArr2Str(arr []string, splitStr string) string {
  8. result := ""
  9. for _, v := range arr {
  10. if result == "" {
  11. result = v
  12. } else {
  13. result = result + splitStr + v
  14. }
  15. }
  16. return result
  17. }