utils

package
v0.0.0-...-b7c645d Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(name string) bool

Exists reports whether the named file or directory exists.

func MaybeInvoke

func MaybeInvoke(opt interface{}, enable bool) fx.Option

func MaybeOption

func MaybeOption(opt fx.Option, enable bool) fx.Option

func MaybeProvide

func MaybeProvide(opt interface{}, enable bool) fx.Option

func MkdirIfNotExists

func MkdirIfNotExists(path string) error

func ReadFromFile

func ReadFromFile(w io.Writer, f string) error

func WriteToFile

func WriteToFile(r io.Reader, newFile 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