utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(path string) bool

DirExists checks if a directory exists

func EnsureDir

func EnsureDir(path string) error

EnsureDir ensures a directory exists

func FileExists

func FileExists(path string) bool

FileExists checks if a file exists

func GetPlatform

func GetPlatform() string

func GetPlatformExt

func GetPlatformExt() string

GetPlatformExt returns the platform-specific extension

func PathExists

func PathExists(path string) (bool, error)

PathExists checks if a file or directory exists

func ValidateName

func ValidateName(name string) bool

ValidateName validates a name

func WriteTemplateFile

func WriteTemplateFile(path, content string, data any) error

WriteTemplateFile writes a template file with provided data

Types

This section is empty.

Jump to

Keyboard shortcuts

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