utils

package
v0.0.0-...-64e8138 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyBetween

func GenerateKeyBetween(prev, next *string) string

func GenerateNextKey

func GenerateNextKey(prev string) string

func GetFileFormat

func GetFileFormat(filename string) *string

func Getenv

func Getenv(key, fallback string) string

func HasPathPrefix

func HasPathPrefix(path, prefix string) bool

func ReadLastNLines

func ReadLastNLines(filePath string, n int) ([]string, error)

Types

type LocalFileStorage

type LocalFileStorage struct{}

func (LocalFileStorage) Delete

func (LocalFileStorage) Delete(path string) error

func (LocalFileStorage) Exists

func (LocalFileStorage) Exists(path string) bool

func (LocalFileStorage) Move

func (LocalFileStorage) Move(src, dst string) error

func (LocalFileStorage) Save

func (LocalFileStorage) Save(path string, r io.Reader) error

Jump to

Keyboard shortcuts

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