utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VAULT       string = "VAULT"
	ERROR_VAULT string = "Vault Obsidian Path env need to be set up"
)

Variables

View Source
var (
	DATE_FORMAT string = os.Getenv("DATE_FORMAT")
)

Functions

func ExecuteCommand

func ExecuteCommand(command string, args string, filePath string) error

func GetFormattedDate

func GetFormattedDate(date time.Time) string

func GoToVaultDirectory

func GoToVaultDirectory(relativePath string) (string, error)

func OpenAndWriteToFile

func OpenAndWriteToFile(fileName string, contentOfFile string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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