gohome

package module
v1.0.0-...-4c1ead8 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2016 License: MIT Imports: 3 Imported by: 2

README

gohome Build Status Coverage Status

Easily get cache and config folders for your app according to each OS spec

Usage

import "github.com/caarlos0/gohome"

const appName = "my-app"

func main()  {
  config := gohome.Config(appName) // gives you the right config folder for the current OS
  cache  := gohome.Cache(appName)  // gives you the right cache folder for the current OS
  // ...
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache(appName string) string

Cache returns the correct folder to store your apps cache, according to the spec of each operating system.

func Config

func Config(appName string) string

Config returns the correct folder to store your apps configuration, according to the spec of each operating system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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