Documentation ¶
Overview ¶
Provide simple Windows OS interface to manipulate windows registry, environment variables, default paths and windows services from Golang lenguaje
Index ¶
- Constants
- func DeleteKey(hkey, path, name string) (err error)
- func GetEnvVar(name string) (val string)
- func GetReg(hkey, path, name string) (val string, err error)
- func GetRegRaw(hkey, path, name string) (val []uint16, err error)
- func WriteDwordReg(hkey, path, name string, val uint32) (err error)
- func WriteEnvVar(name, val string) (err error)
- func WriteStringReg(hkey, path, name, val string) (err error)
- type Service
- type ShellFolders
Constants ¶
const ( ALL = true //Use for make ShellFolders.Context USER = false //Use for make ShellFolders.Context )
Variables ¶
This section is empty.
Functions ¶
func DeleteKey ¶
Use to remove key from windows registry the HKEY in the next definition HHLM, HKCU, HKCC, HKCR, HKU
func GetRegRaw ¶
TODO: Solve error in query DWORD registry Use to read value from windows registry the HKEY in the next definition HKLM, HKCU, HKCC, HKCR, HKU
func WriteDwordReg ¶
Use to write uint32 value to windows registry the HKEY in the next definition HHLM, HKCU, HKCC, HKCR, HKU
func WriteEnvVar ¶
Use to write value on windows environment variable by name
func WriteStringReg ¶
Use to write string value to windows registry the HKEY in the next definition HHLM, HKCU, HKCC, HKCR, HKU
Types ¶
type ShellFolders ¶
type ShellFolders struct {
Context bool
}
func (*ShellFolders) AppData ¶
func (s *ShellFolders) AppData() (val string)
Return string with AppData path, its use the Context defined in the ShellFolders struct
func (*ShellFolders) Desktop ¶
func (s *ShellFolders) Desktop() (val string)
Return string with Desktop path, its use the Context defined in the ShellFolders struct
func (*ShellFolders) Documents ¶
func (s *ShellFolders) Documents() (val string)
Return string with Documents path, its use the Context defined in the ShellFolders struct
func (*ShellFolders) ProgramFiles ¶
func (s *ShellFolders) ProgramFiles() (val string)
Return string with ProgramFiles path Its don't use the Context value
func (*ShellFolders) StartMenu ¶
func (s *ShellFolders) StartMenu() (val string)
Return string with StarMenu root path, its use the Context defined in the ShellFolders struct
func (*ShellFolders) StartMenuPrograms ¶
func (s *ShellFolders) StartMenuPrograms() (val string)
Return string with StarMenu programs path, its use the Context defined in the ShellFolders struct