Skip to content

Instantly share code, notes, and snippets.

@twpayne
Created February 20, 2019 23:43
Show Gist options
  • Save twpayne/09e9135d3f62471ebd7c83359b081e80 to your computer and use it in GitHub Desktop.
Save twpayne/09e9135d3f62471ebd7c83359b081e80 to your computer and use it in GitHub Desktop.
github.com/twpayne/go-xdg trivial example
package main
import (
"fmt"
xdg "github.com/twpayne/go-xdg"
)
func main() {
bds, err := xdg.NewBaseDirectorySpecification()
if err != nil {
panic(err)
}
fmt.Printf("%+v\n", bds)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment