boilerplate

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Boilerplates = []Boilerplate{
	{
		Name:     "Express - Node.js",
		URL:      "/leancloud/node-js-getting-started/zipball/master",
		Homepage: "http://expressjs.com/",
	},
	{
		Name:     "Koa - Node.js",
		URL:      "/leancloud/koa-getting-started/zipball/master",
		Homepage: "http://koajs.com/",
	},
	{
		Name:     "Flask - Python",
		URL:      "/leancloud/python-getting-started/zipball/master",
		Homepage: "http://flask.pocoo.org/",
	},
	{
		Name:     "Django - Python",
		URL:      "/leancloud/django-getting-started/zipball/master",
		Homepage: "https://www.djangoproject.com/",
	},
	{
		Name:     "Serlvet - Java",
		URL:      "/leancloud/java-war-getting-started/zipball/master",
		Homepage: "https://jcp.org/en/jsr/detail?id=340",
	},
	{
		Name:     "Spring Boot - Java",
		URL:      "/leancloud/spring-boot-getting-started/zipball/master",
		Homepage: "https://spring.io/projects/spring-boot",
	},
	{
		Name:     "Slim - PHP",
		URL:      "/leancloud/slim-getting-started/zipball/master",
		Homepage: "http://www.slimframework.com/",
	},
	{
		Name:     ".NET Core - .Net",
		URL:      "/leancloud/dotnet-core-getting-started/zipball/master",
		Homepage: "https://dotnet.microsoft.com/",
	},
	{
		Name:     "Echo - Go",
		URL:      "/leancloud/golang-getting-started/zipball/master",
		Homepage: "https://echo.labstack.com/",
	},
	{
		Name:     "Static Site",
		URL:      "/leancloud/static-getting-started/zipball/master",
		Homepage: "https://github.com/cloudhead/node-static",
	},
}

Functions

func DownloadToFile

func DownloadToFile(url string, fileName string) error

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

func FetchRepo

func FetchRepo(boil *Boilerplate, dest string, appID string, region regions.Region) 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"`
}

Jump to

Keyboard shortcuts

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