helpers

package
v0.0.0-...-5ecafbf Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToClipboard

func CopyToClipboard(text string) string

CopyToClipboard copys text to clipboard if set by user

func CreateFile

func CreateFile(glob string) (*os.File, string, error)

CreateFile creates a temporary file with the name bases on a glob

func EditFile

func EditFile(fileName string) error

EditFile opens a file in an editor

func Max

func Max(x int, y int) int

Max returns the max between two ints

func TransformCanonical

func TransformCanonical(username string) string

TransformCanonical takes a username and returns it as a canonical name

func TransformTags

func TransformTags(tagString *string) []string

TransformTags formats a tag string as an array

func ValidateVisibility

func ValidateVisibility(visibility string) error

ValidateVisibility checks whether the visibility value is valid

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