utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsPath

func AbsPath(path string) string

AbsPath returns absolute path, handling errors gracefully

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies a file from src to dst

func EnsureGitignore

func EnsureGitignore(dir string) error

EnsureGitignore adds .oops/ to .gitignore if it exists and doesn't have the entry

func FileExists

func FileExists(path string) bool

FileExists checks if a file exists

func IsDir

func IsDir(path string) bool

IsDir checks if path is a directory

func IsFile

func IsFile(path string) bool

IsFile checks if path is a regular file (not directory)

Types

This section is empty.

Jump to

Keyboard shortcuts

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