dependencies

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 0 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS interface {
	Open(name string) (File, error)
	IsNotExist(err error) bool
	ReadAll(f File) ([]byte, error)
	TempFile(dir, prefix string) (File, error)
	Remove(name string) error
}

FS is an interface for file-related operations in the os and ioutil packages

type File

type File interface {
	Write(b []byte) (int, error)
	Sync() error
	Close() error
	Name() string
}

File is an interface for the os.File type

type RegistryKey

type RegistryKey interface {
	GetStringValue(name string) (val string, valtype uint32, err error)
	SetStringValue(name, value string) error
	Close() error
}

RegistryKey is an interface for the registry.Key type

type StdFS

type StdFS struct{}

func (StdFS) IsNotExist

func (StdFS) IsNotExist(err error) bool

func (StdFS) Open

func (StdFS) Open(name string) (File, error)

func (StdFS) ReadAll

func (StdFS) ReadAll(f File) ([]byte, error)

func (StdFS) Remove

func (StdFS) Remove(name string) error

func (StdFS) TempFile

func (StdFS) TempFile(dir, prefix string) (File, error)

type StdRegistry

type StdRegistry struct{}

func (StdRegistry) CreateKey

func (StdRegistry) CreateKey(k registry.Key, path string, access uint32) (RegistryKey, bool, error)

func (StdRegistry) OpenKey

func (StdRegistry) OpenKey(k registry.Key, path string, access uint32) (RegistryKey, error)

type WindowsRegistry

type WindowsRegistry interface {
	CreateKey(k registry.Key, path string, access uint32) (newk RegistryKey, openedExisting bool, err error)
	OpenKey(k registry.Key, path string, access uint32) (RegistryKey, error)
}

WindowsRegistry is an interface for the package-level methods in the golang.org/x/sys/windows/registry package

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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