utils

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFileIfExists

func ReadFileIfExists(pth string) (string, bool, error)

Types

type OsProxy

type OsProxy struct {
	ReadFileIfExists func(pth string) (string, bool, error)
	MkdirAll         func(string, os.FileMode) error
	WriteFile        func(string, []byte, os.FileMode) error
}

func DefaultOsProxy

func DefaultOsProxy() OsProxy

type TemplateProxy

type TemplateProxy struct {
	Parse   func(name string, templateText string) (*template.Template, error)
	Execute func(*template.Template, *bytes.Buffer, interface{}) error
}

func DefaultTemplateProxy

func DefaultTemplateProxy() TemplateProxy

Jump to

Keyboard shortcuts

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