utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureFile

func EnsureFile(filePath, content string) error

EnsureFile checks if a file exists, creates it if it doesn't exist, and writes content to it; if the file already exists, no modifications are made; suitable for initialization configuration operations

func WriteFile

func WriteFile(filename string, text string) error

WriteFile: write text to file with name 'filename'

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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