config

package
v0.0.0-...-de8e23c Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WindowStyleNormal      = 0
	WindowStyleCaptionLess = 1
)
View Source
const Gt = ">"

Variables

View Source
var Config map[string]string
View Source
var ROOT string

项目根目录

Functions

func ExePath

func ExePath() string

func Executable

func Executable() (exePath string, err error)

GetModuleFileName() with hModule = NULL

Types

type Conf

type Conf map[string]interface{}

func ParseConfig

func ParseConfig(filename string, store interface{}) (Conf, error)

func (Conf) Bool

func (self Conf) Bool(xpath string) bool

func (Conf) Convert

func (self Conf) Convert(xpath string) interface{}

xpath 使用 ">" 方式分隔json嵌套层级,如 a>b>c

func (Conf) Float64

func (self Conf) Float64(xpath string) float64

func (Conf) Int

func (self Conf) Int(xpath string) int

func (Conf) String

func (self Conf) String(xpath string) string

type Manifest

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

func (*Manifest) ApplicationTitle

func (a *Manifest) ApplicationTitle() string

func (*Manifest) BrowserSubprocessPath

func (a *Manifest) BrowserSubprocessPath() string

func (*Manifest) CachePath

func (a *Manifest) CachePath() string

func (*Manifest) EnableTransparent

func (a *Manifest) EnableTransparent() bool

func (*Manifest) FirstPage

func (a *Manifest) FirstPage() string

func (*Manifest) FormFixed

func (a *Manifest) FormFixed() bool

func (*Manifest) Get

func (a *Manifest) Get(key string) interface{}

func (*Manifest) Height

func (a *Manifest) Height() int32

func (*Manifest) Load

func (a *Manifest) Load() *Manifest

func (*Manifest) Locale

func (a *Manifest) Locale() string

func (Manifest) Path

func (a Manifest) Path() string

func (*Manifest) Style

func (a *Manifest) Style() int32

func (*Manifest) Width

func (a *Manifest) Width() int32

Jump to

Keyboard shortcuts

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