util

package
v0.0.0-...-0ca6807 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 8 Imported by: 0

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