files

package
v0.0.0-...-187538d Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package files implement the host files.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFilesJSONSchemaValidation = errors.New("file: JSON schema validation error")
	ErrFilesJSONDataMarshaling   = errors.New("file: JSON data marshaling error")
)

Functions

func CreateFileIfNotExists

func CreateFileIfNotExists(path string, name string) (bool, error)

CreateFileIfNotExists creates a file if it does not exist.

func IsValidJSON

func IsValidJSON(jsonSchme []byte, json []byte) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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