boilerplate

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2017 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadToFile

func DownloadToFile(r *grequests.Response, fileName string) error

DownloadToFile allows you to download the contents of the response to a file

func FetchRepo

func FetchRepo(boil *Boilerplate, dest string, appID string) error

FetchRepo will download the boilerplate from remote and extract to ${dest}/folder

Types

type Boilerplate

type Boilerplate struct {
	Name     string `json:"name"`
	Homepage string `json:"homepage"`
	URL      string `json:"url"`
}

type Category added in v0.12.0

type Category struct {
	Name         string        `json:"name"`
	Boilerplates []Boilerplate `json:"boilerplates"`
}

func GetBoilerplates added in v0.12.0

func GetBoilerplates() ([]Category, error)

GetBoilerplates returns all the boilerplate with name and url

Jump to

Keyboard shortcuts

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