file

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 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 any) 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