asset

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeJSON

func EncodeJSON(any interface{}) ([]byte, error)

func EncodeYAML

func EncodeYAML(any interface{}) ([]byte, error)

Types

type File

type File struct {
	Content string
	URL     string
}

func NewFile

func NewFile(URL string, content string) *File

func (*File) Validate

func (f *File) Validate() error

type Files

type Files []*File

func (*Files) Append

func (f *Files) Append(file *File)

func (*Files) Reset

func (f *Files) Reset()

func (Files) Upload

func (f Files) Upload(ctx context.Context, fs afs.Service) error

Jump to

Keyboard shortcuts

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