util

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NL = "\n"
)

Variables

This section is empty.

Functions

func CreateIfNotExist

func CreateIfNotExist(file string) (*os.File, error)

func FileExists

func FileExists(file string) bool

func FileNameWithoutExt

func FileNameWithoutExt(file string) string

func FindGoModPath added in v1.0.7

func FindGoModPath(dir string) (string, bool)

func JoinPackages

func JoinPackages(pkgs ...string) string

func MkdirIfNotExist

func MkdirIfNotExist(dir string) error

func PathFromGoSrc

func PathFromGoSrc() (string, error)

func RemoveIfExist

func RemoveIfExist(filename string) error

func RemoveOrQuit

func RemoveOrQuit(filename string) error

func Title

func Title(s string) string

func Untitle

func Untitle(s string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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