file

package
v0.0.0-...-ebe581b Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const PrivateKeyFileName = "private.key"
View Source
const PublicKeyFileName = "public.key"

Variables

This section is empty.

Functions

func IsFileExisted

func IsFileExisted(path, filename string) (bool, error)

IsFileExisted judge if the file exists

func ReadFile

func ReadFile(path, filename string) ([]byte, error)

ReadFile read the file contents

func WriteFile

func WriteFile(path, filename string, content []byte) error

WriteFile write the file

Types

This section is empty.

Jump to

Keyboard shortcuts

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