file

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy added in v0.51.0

func Copy(src, dst string) error

Copy a file

func CopyDir added in v0.51.0

func CopyDir(src, dst string) error

Copy a directory recursively

func Exists added in v0.51.0

func Exists(filePath string) (bool, error)

func Unmarshal added in v0.17.0

func Unmarshal(file string, obj interface{}) error

func UnmarshalEntities added in v0.44.0

func UnmarshalEntities(file string, dir string) ([]modelAPI.Entity, error)

UnmarshalEntities will read the file if provided or the directory and will extract any Perses resources.

func UnmarshalEntitiesFromDirectory added in v0.41.0

func UnmarshalEntitiesFromDirectory(dir string) ([]modelAPI.Entity, []error)

func UnmarshalEntitiesFromFile added in v0.41.0

func UnmarshalEntitiesFromFile(file string) ([]modelAPI.Entity, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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