fileio

package
v0.1.0-c405994-dev Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExist

func CheckFileExist(path string) error

CheckFileExist returns unwarpped error

func GetAbsolutelyPath

func GetAbsolutelyPath(file string) (absPath string, err error)

GetAbsolutelyPath returns unwarpped error

func GetAbsolutelyPathWithBasePath

func GetAbsolutelyPathWithBasePath(file string, relative string) (absPath string, err error)

GetAbsolutelyPathWithBasePath returns unwarpped error

func GetFileContent

func GetFileContent(file *definition.FileIdentifer) (string, error)

func GetFileExistingStatus

func GetFileExistingStatus(file *definition.FileIdentifer) error

func GetFileIdentifer

func GetFileIdentifer(file string) (*definition.FileIdentifer, error)

func ReadFile

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

ReadFile returns unwarpped error

func WriteFile

func WriteFile(path string, content string) error

WriteFile returns unwarpped error

func WriteFileContent

func WriteFileContent(file *definition.FileIdentifer, content string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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