Documentation
¶
Index ¶
- func Contains(a []string, x string) bool
- func DirExists(path string) bool
- func EnsureDir(path string) error
- func ExtractDomain(url string) string
- func FileExists(path string) bool
- func Find(a []string, x string) int
- func FindID(a []string, x string) int
- func FirstLower(s string) string
- func FirstUpper(s string) string
- func GetHost(conf *config.Config, space string, ports ...int) string
- func GetPlatform() string
- func GetPlatformExt() string
- func IsValidDomain(domain string) bool
- func IsValidURL(url string) bool
- func PathExists(path string) (bool, error)
- func RemoveDuplicates(a []string) []string
- func ValidateName(name string) bool
- func WriteTemplateFile(path, content string, data any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractDomain ¶
ExtractDomain extracts the domain from a URL string.
func Find ¶
Find returns the smallest index i at which x == a[i], or len(a) if there is no such index.
func FirstLower ¶
FirstLower returns a copy of the string s with its first letter lowercased.
func FirstUpper ¶
FirstUpper returns a copy of the string s with its first letter capitalized.
func GetHost ¶
GetHost constructs the URL based on the given space and config, with an optional port.
func GetPlatform ¶
func GetPlatform() string
func GetPlatformExt ¶
func GetPlatformExt() string
GetPlatformExt returns the platform-specific extension
func IsValidDomain ¶
IsValidDomain checks if a string is a valid domain.
func PathExists ¶
PathExists checks if a file or directory exists
func RemoveDuplicates ¶
RemoveDuplicates removes duplicate elements from a.
func WriteTemplateFile ¶
WriteTemplateFile writes a template file with provided data
Types ¶
This section is empty.