Documentation ¶
Overview ¶
debug is print with debuglevels
Index ¶
- func CopyToClipboard(text string) error
- func CurrFuncName() string
- func Debugf(format string, a ...any)
- func Dirname() string
- func FileCopy(sourcename, destinationname string) error
- func FileExists(path string) bool
- func Infof(format string, a ...any)
- func PanicIf(b bool, format string, v ...any)
- func PathInputShared(year, day, catalog, filename string) string
- func PathInputStandalone(year, day, filename string) string
- func PreviewInput(input string, lines int) string
- func ReadFile(pathFromCaller string) string
- func Run(command string, arg ...string)
- func SetDebuglvl(n int)
- func SetTimer() func() time.Duration
- func ShardInputFile(inputpath string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrFuncName ¶
func CurrFuncName() string
CurrFuncName print out func for use int fmt.Printf and debug texts
func PathInputShared ¶
PathInputShared get the path from input files in the shared input catalog
func PathInputStandalone ¶
PathInputStandalone return filepath for inputfiles used by standalone aoc solutions (solution with main package)
func PreviewInput ¶
PreviewInput a long input string
func ReadFile ¶
ReadFile is a wrapper over io/ioutil.ReadFile but also determines the dynamic absolute path to the file.
Deprecated in favor of go:embed, refer to scripts/skeleton/tmpls
func SetTimer ¶
SetTimer Set a timmer and return a func that returns time.Duration from the timer func main() { stopTimer := SetTimer() ... fmt.Printf("Elapsed time:%v\n".stopTimer())
func ShardInputFile ¶
ShardInputFile read shared (input files in input catalog) and return as a string
Types ¶
This section is empty.