pal

package
v1.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pal provides functions that need to operate differently across different operating systems and/or platforms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdLineWithEnvVars

func CmdLineWithEnvVars(vars []string, cmd string) string

CmdLineWithEnvVars generates a command-line that can be run at the operating system command-line (e.g. bash or cmd) which also requires one or more environment variables to also be set

func CreateEnvVarKeyword added in v0.13.0

func CreateEnvVarKeyword() string

func FilenameInUserHomeDotDirectory

func FilenameInUserHomeDotDirectory(dotDirectory string, filename string) string

FilenameInUserHomeDotDirectory returns the full path and filename to the filename in the dotDirectory (e.g. .sqlcmd) in the user's home directory e.g. c:\users\username

func Initialize

func Initialize(handler func(err error), endOfLine string)

func LineBreak

func LineBreak() string

func UserName

func UserName() (userName string)

UserName returns the name of the currently logged-in user

Types

This section is empty.

Jump to

Keyboard shortcuts

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