internal

package
v0.0.0-...-850f177 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Semaphore

type Semaphore struct {
	// contains filtered or unexported fields
}

Semaphore provides a run-once type of flag (atomic)

func (*Semaphore) CanRun

func (l *Semaphore) CanRun() bool

CanRun will allow a caller to proceed

func (*Semaphore) Done

func (l *Semaphore) Done()

Done finishes the run

type TemplateFuncMap

type TemplateFuncMap interface {
	FuncMap() template.FuncMap
}

type TemplateRendererFunc

type TemplateRendererFunc func(w io.Writer, templateName string, data any) error

func NewTemplateRenderer

func NewTemplateRenderer(files *embed.FS) TemplateRendererFunc

Jump to

Keyboard shortcuts

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