helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2014 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Contains few helpers functions which are used througout the project

Index

Constants

View Source
const HttpmsDir = ".httpms"

Variables

This section is empty.

Functions

func AbsolutePath

func AbsolutePath(path, relativeRoot string) string

Returns absolute path. If path is already absolute leave it be. If not join it with relativeRoot

func Copy

func Copy(src, dst string) error

Copies a file from src to dst

func ProjectRoot

func ProjectRoot() (string, error)

Returns the root directory. This is the place where the app is installed or the place where the source is stored if in development or installed with go get

func ProjectUserPath

func ProjectUserPath() (string, error)

Returns the directory in which user files should be stored. Creates it is missing. User files are thing such as sqlite files, logfiles and user configs

func RemovePidFile

func RemovePidFile(PidFile string)

Removes the pidfile

func SetLogsFile

func SetLogsFile(logFilePath string) error

Sets the logfile of the server

func SetUpPidFile

func SetUpPidFile(PidFile string)

Will create the pidfile and it will contain the processid of the current process

Types

This section is empty.

Jump to

Keyboard shortcuts

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