core

package
v0.0.0-...-dfe6aa9 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePackageJson

func CreatePackageJson(old string) []byte

Types

type DevDependencies

type DevDependencies struct {
	Electron string `json:"electron"`
}

type PackageJson

type PackageJson struct {
	Main            string          `json:"main"`
	Version         string          `json:"version"`
	Name            string          `json:"name"`
	DevDependencies DevDependencies `json:"devDependencies"`
	Scripts         Scripts         `json:"scripts"`
}

func ReadPackageJson

func ReadPackageJson(old string) PackageJson

type Scripts

type Scripts struct {
	Start string `json:"start"`
}

type Versions

type Versions struct {
	Hash string
	URL  string
	Size int
}

func VersionList

func VersionList() []Versions

func (Versions) Download

func (v Versions) Download() ZipZile

func (Versions) String

func (v Versions) String() string

type ZipZile

type ZipZile struct {
	Filename      string
	FileNameNoExt string
	Path          string
}

func (ZipZile) Extract

func (z ZipZile) Extract()

func (ZipZile) String

func (z ZipZile) String() string

Jump to

Keyboard shortcuts

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