regedit

package module
v0.0.0-...-729a798 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2016 License: MIT Imports: 6 Imported by: 2

README

regedit

Windows Regedit by Golang

Documentation

Index

Constants

View Source
const (
	Add = iota
	Query
	Delete
	Copy
	Save
	Restore
	Load
	Unload
	Compare
	Export
	Import
)
View Source
const (
	HKCR = iota
	HKLM
	HKU
	HKCU
	HKCC
)
View Source
const (
	SZ = iota
	BINARY
	MULTI
	EXPAND
)

Variables

View Source
var (
	Actions = map[int]string{
		0:  "add",
		1:  "query",
		2:  "delete",
		3:  "copy",
		4:  "save",
		5:  "restore",
		6:  "load",
		7:  "unload",
		8:  "compare",
		9:  "export",
		10: "import",
	}
	Fields = map[int]string{
		0: "HKEY_CLASSES_ROOT",
		1: "HKEY_LOCAL_MACHINE",
		2: "HKEY_USERS",
		3: "HKEY_CURRENT_USER",
		4: "HKEY_CURRENT_CONFIG",
	}
	Types = map[int]string{
		0: "REG_SZ",
		1: "REG_BINARY",
		2: "REG_MULTI_SZ",
		3: "REG_EXPAND_SZ",
	}
)

Functions

This section is empty.

Types

type Reg

type Reg struct {
	Key   string
	Type  string
	Value string
}

type RegCmd

type RegCmd struct {
	// contains filtered or unexported fields
}

func (RegCmd) Exec

func (this RegCmd) Exec() ([]Reg, error)
  Execute Regedit

  Support:
	- Add
	- Search

  Return:
  	- []Reg
  	- error

type Regedit

type Regedit struct {
	Action string
	Field  string
	Reg
}

func New

func New(action, filed int, path string) *Regedit

Create Regedit struct

func (*Regedit) Add

func (this *Regedit) Add(reg Reg) RegCmd

Add

func (*Regedit) Search

func (this *Regedit) Search(reg Reg) RegCmd

Search

Jump to

Keyboard shortcuts

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