utils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormaliseHomeDir

func NormaliseHomeDir(file string) string

Types

type FileUtils

type FileUtils struct{}

func (FileUtils) MkDir

func (FileUtils) MkDir(path string) error

func (FileUtils) ReadFile

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

func (FileUtils) UserHomeDir

func (FileUtils) UserHomeDir() (string, error)

func (FileUtils) WriteFile

func (FileUtils) WriteFile(path string, contents []byte) error

type FileUtilsInterface

type FileUtilsInterface interface {
	WriteFile(path string, contents []byte) error
	MkDir(path string) error
	ReadFile(path string) ([]byte, error)
	UserHomeDir() (string, error)
}

Directories

Path Synopsis
Package mock_utils is a generated GoMock package.
Package mock_utils is a generated GoMock package.

Jump to

Keyboard shortcuts

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