glib

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 6 Imported by: 2

README

glib

Functions I find myself re-using

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditFile

func EditFile(defaultContent []byte, filePath string, editorPath string) error

EditFile writes a file if it does not exist, then opens the file to edit

func PretendToUse

func PretendToUse(args ...interface{})

PretendToUse is an empty function to shut up the Go compiler while prototyping

func ValidateDirectory

func ValidateDirectory(dir string) (string, error)

ValidateDirectory expands a directory and checks that it exists it returns the full path to the directory on success ValidateDirectory("~/foo") -> ("/home/bbkane/foo", nil)

Types

This section is empty.

Jump to

Keyboard shortcuts

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