|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
# golang-directories |
|
|
|
|
# directories |
|
|
|
|
|
|
|
|
|
Golang implementation of https://lib.rs/crates/directories |
|
|
|
|
|
|
|
|
@ -12,9 +12,9 @@ function user.Fonts() (string, error) |
|
|
|
|
``` |
|
|
|
|
and return an Error if they cannot satisfy the request on a particular platform (e.g. Windows doesn't have a per-user font directory) |
|
|
|
|
|
|
|
|
|
You need to set your project details before using the functions in `golang-directories/project` by calling project.SetProjectName |
|
|
|
|
You need to set your project details before using the functions in `directories/project` by calling project.SetProjectName |
|
|
|
|
|
|
|
|
|
`"git.martyn.berlin/martyn/golang-directories/base"` contains : |
|
|
|
|
`"git.martyn.berlin/martyn/directories/base"` contains : |
|
|
|
|
* `Home()` |
|
|
|
|
* `Cache()` |
|
|
|
|
* `Config()` |
|
|
|
@ -25,7 +25,7 @@ You need to set your project details before using the functions in `golang-direc |
|
|
|
|
* `Runtime()` |
|
|
|
|
* `State()` |
|
|
|
|
|
|
|
|
|
`"git.martyn.berlin/martyn/golang-directories/user"` contains : |
|
|
|
|
`"git.martyn.berlin/martyn/directories/user"` contains : |
|
|
|
|
* `Home()` |
|
|
|
|
* `Audio()` |
|
|
|
|
* `Desktop()` |
|
|
|
@ -37,7 +37,7 @@ You need to set your project details before using the functions in `golang-direc |
|
|
|
|
* `Templates()` |
|
|
|
|
* `Videos()` |
|
|
|
|
|
|
|
|
|
and `"git.martyn.berlin/martyn/golang-directories/project"` alongside `SetProjectName()` contains : |
|
|
|
|
and `"git.martyn.berlin/martyn/directories/project"` alongside `SetProjectName()` contains : |
|
|
|
|
* `Cache()` |
|
|
|
|
* `Config()` |
|
|
|
|
* `Data()` |
|
|
|
|