lib

package
v0.0.0-...-6e4fa1b Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(filename string) bool

FileExists returns true if file exists BUT there may be cases where file exists but no read permissions lead to error (in which case false is returned)

func GetDefaultMavenConfPath

func GetDefaultMavenConfPath() (string, error)

GetDefaultMavenConfPath returns the absolute path of where maven's settings.xml is usually found by convention

func ReplaceMavenTemplate

func ReplaceMavenTemplate(filename, username, password string) ([]byte, error)

ReplaceMavenTemplate takes filename and replaces the strings PACMAN_USER and PACMAN_PASS with username and password, respectively

func WriteToFile

func WriteToFile(bytes []byte, filename string) error

WriteToFile creates parent directories if they do not exist

Types

This section is empty.

Jump to

Keyboard shortcuts

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