gohome

package module
Version: v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 16, 2018 License: MIT Imports: 2 Imported by: 7

README

gohome Build Status Coverage Status SayThanks.io

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

Usage

import "http://gopkg.in/caarlos0/gohome.v2"

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