electron

package
v0.0.0-...-b7787a3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package electron implments functions for working with the electron main process.

Index

Constants

This section is empty.

Variables

View Source
var (
	E = module.Require("electron")
)

Functions

func On

func On(event string, fn func())

On registers fn to be called whenever the global event provided is triggered. See available events at http://electron.atom.io/docs/api/app/#app.

func Start

func Start(app *App)

Start is the entrypoint for go-electron apps.

Types

type App

type App struct {
	Name         string
	Version      string
	WindowWidth  int
	WindowHeight int
	OnReady      func(*App)
}

App represents a go-electron app

Directories

Path Synopsis
Package build implements functions for building go-electron applications
Package build implements functions for building go-electron applications

Jump to

Keyboard shortcuts

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