util

package
v0.0.0-...-407441d Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 8 Imported by: 55

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToClipboard

func CopyToClipboard(text string) error

CopyToClipboard is for macOS

func Dirname

func Dirname() string

Dirname is a port of __dirname in node

func ReadFile

func ReadFile(pathFromCaller string) string

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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