util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatError

func FormatError(errmsg string) string

func Hash

func Hash(path string) (string, error)

func HeadContent

func HeadContent(content string) string

func WithTx

func WithTx(db *sql.DB, timeout time.Duration, cb func(context.Context, *sql.Tx) error) error

Types

type File

type File struct {
	Path  string
	Name  string
	Hash  string
	Rerun bool
}

func PathsToFiles

func PathsToFiles(paths []string) ([]*File, error)

func (*File) Head

func (f *File) Head() (string, error)

func (*File) Read

func (f *File) Read() (string, error)

Jump to

Keyboard shortcuts

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