utils

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(name string) bool

FileExists check if file exists

func NewErrNonRestorableUsage

func NewErrNonRestorableUsage(err error) error

NewErrNonRestorableUsage creates new error

func WriteFile

func WriteFile(name string, data []byte) error

WriteFile write file to disk

Types

type ErrNonRestorableUsage

type ErrNonRestorableUsage struct {
	// contains filtered or unexported fields
}

ErrNonRestorableUsage indicates non restoreable usage error on any error system tries to restore users usage counter but on this error it does not

func (*ErrNonRestorableUsage) Error

func (e *ErrNonRestorableUsage) Error() string

func (*ErrNonRestorableUsage) Unwrap

func (e *ErrNonRestorableUsage) Unwrap() error

Jump to

Keyboard shortcuts

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