astilectron_bindata

package module
v0.0.0-...-5f6c070 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: MIT Imports: 1 Imported by: 0

README

go-astilectron-bindata

go-astilectron-bindata is a simple utility, that automatically downloads go-astilectron's binary dependencies and embeds them into the source code.

Installation

go get github.com/veecue/go-astilectron-bindata/...

Usage

  • add this line to your code: //go:generate go-astilectron-bindata and run go generate or simply run go-astilectron-bindata
  • add "github.com/veecue/go-astilectron-bindata" to your includes
  • add this code before a.Start(): a.SetProvisioner(astilectron_bindata.NewProvisioner(Disembed))

Parameters

go-astilectron-bindata --help:

Usage of go-astilectron-bindata:
  -c, --current-only
    	Only download electron for the current os

Documentation

Index

Constants

View Source
const (
	SrcFileNameAstilectron = "astilectron.zip"
	SrcFileNameElectron    = "electron.zip"
)

Variables

This section is empty.

Functions

func NewProvisioner

func NewProvisioner(disembedFunc func(string) ([]byte, error)) astilectron.Provisioner

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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