util

package
v1.0.12-0...-16f252f Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

func FindGoModPath(dir string) (string, bool)

func GetHead

func GetHead(source string) string

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

func With

func With(name string) *defaultTemplate

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