explorer

package
v0.0.0-...-1ef97f2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: MIT Imports: 2 Imported by: 0

README

Windows Explorer Utils

Package explorer provides access to the Windows Explorer registry.

Installation

go get -u github.com/martinveverka/go/windows/explorer

Quickstart

Here is a simple example of getting a current user Pictures folder.

import (
	"github.com/martinveverka/go/windows/explorer"
)

path, err := explorer.GetUserShellFolder(explorer.MyPictures)
if err != nil {
	panic(err)
}

fmt.Printf("My pictures folder is %q\n", path)

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	// User Shell Folders registry keys
	AppData      = `AppData`
	AppDataLocal = `Local AppData`
	Captures     = `{EDC0FE71-98D8-4F4A-B920-C8DC133CB165}`
	Desktop      = `Desktop`
	Documents    = `Personal`
	Downloads    = `{374DE290-123F-4565-9164-39C4925E467B}`
	MyMusic      = `My Music`
	MyPictures   = `My Pictures`
	MyVideo      = `My Video`
	Recent       = `Recent`
	SendTo       = `SendTo`
	StartMenu    = `Start Menu`
	Startup      = `Startup`
)

Variables

This section is empty.

Functions

func GetUserShellFolder

func GetUserShellFolder(key string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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