utils_types

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 5 Imported by: 69

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File added in v0.20.0

type File struct {
	Relpath   FilePath
	Name      string
	Extension string
	Content   string
}

func GetFiles added in v0.20.0

func GetFiles(fs embed.FS, params GetFilesParams) []File

type FilePath

type FilePath string

func (FilePath) Base

func (f FilePath) Base() FilePath

func (FilePath) Dir added in v0.16.0

func (f FilePath) Dir() FilePath

func (FilePath) Join added in v0.16.0

func (f FilePath) Join(paths ...string) FilePath

func (FilePath) ToString

func (f FilePath) ToString() string

type GetFilesParams added in v0.20.0

type GetFilesParams struct {
	EmbeddedFilerName string   // required param
	RootFolder        FilePath // to exclude from RelPath
	IsNotRecursive    bool

	AllowedExtensions []string
	// contains filtered or unexported fields
}

type RegExp

type RegExp string

type TemplateExpression

type TemplateExpression string

Jump to

Keyboard shortcuts

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