utils

package
v0.1.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAvailablePort

func FindAvailablePort() (uint16, error)

FindAvailablePort finds an available port on localhost

func IsDockerComposeAvailable

func IsDockerComposeAvailable() bool

func ParseKeyValuePairs

func ParseKeyValuePairs(pairs []string) (map[string]string, error)

ParseKeyValuePairs parses KEY=VALUE pairs.

func SanitizeVersion

func SanitizeVersion(version string) string

SanitizeVersion sanitizes a version string for use in filesystem paths. Replaces invalid filesystem characters with hyphens.

func ValidatePythonIdentifier

func ValidatePythonIdentifier(name string) error

ValidatePythonIdentifier checks if the given name is a valid Python identifier. It returns an error if the name doesn't match Python identifier rules or is a reserved keyword.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL