fsutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AppendUniqueLines

func AppendUniqueLines(path string, lines []string) error

func EnsureFile

func EnsureFile(path string) error

TODO: Some of these were completely vibe coded, just need to refactor a bit to make more consistent

func GenerateFromTemplateDir

func GenerateFromTemplateDir(templateRoot, outputRoot string) error

func RemoveDir

func RemoveDir(path string) error

func RenderTemplate

func RenderTemplate(tmplPath string) ([]byte, error)

func ValidateDependency

func ValidateDependency(stack, dependency string) bool

stack is the parent tech, check if dependency is compatible with it.

func WithFileLock

func WithFileLock(path string, fn func() error) error

func WriteFile

func WriteFile(file FileInfo) error

func WriteMultipleFiles

func WriteMultipleFiles(files []FileInfo) error

Types

type FileInfo

type FileInfo struct {
	Path    string
	Content []byte
}

Jump to

Keyboard shortcuts

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