build

package
v0.0.0-...-0ff58f4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2015 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTemplates = Templates{IndexHtml: index, ClientJs: client, ScriptJs: script}

Functions

This section is empty.

Types

type Package

type Package struct {
	Name   string `json:"name"`
	Main   string `json:"main"`
	Window Window `json:"window"`
	Bin    string `json:"-"`
	EnvVar string `json:"-"`
}

func (Package) CreateNW

func (p Package) CreateNW(zw *zip.Writer, templates Templates, myapp io.Reader, includes string) error

CreateNW creates a node-webkit .nw file

type Templates

type Templates struct {
	IndexHtml string
	ClientJs  string
	ScriptJs  string
}

type Window

type Window struct {
	Title      string `json:"title,omitempty"`
	Toolbar    bool   `json:"toolbar"`
	Show       bool   `json:"show,omitempty"`
	Position   string `json:"position,omitempty"`
	Width      int    `json:"width,omitempty"`
	Height     int    `json:"height,omitempty"`
	Fullscreen bool   `json:"fullscreen"`
	Frame      bool   `json:"frame"`
}

Jump to

Keyboard shortcuts

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