modulepackage
0.0.0-20170611040325-ede170f98a14
Repository: https://github.com/yukimemi/core.git
Documentation: pkg.go.dev
# README
core
Useful functions for Golang.
# Functions
BaseName is get file name without extension.
CompileStrs is regexp strings compile to *regexp.Regexp.
FailOnError is fail if err occured.
GetCmdPath returns cmd abs path.
GetGlobArgs return glob files.
IsMatchStrs is whether str match or not.
NewCmd create Cmd struct pointer.
PP is wrapper of pp Println.
PPf is wrapper of pp Printf.
ReadToBuf is scan and store buffer.
ScanPrintStderr is scan and print to stderr.
ScanPrintStdout is scan and print to stdout.
ScanWrite is scan and write to io.Writer.
SurroundWord surround word.