gitignore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadTemplate

func DownloadTemplate(url string) ([]byte, error)

DownloadTemplate returns the template content

func DownloadTemplates

func DownloadTemplates(langs []string) (string, error)

DownloadTemplates list

Types

type Template

type Template struct {
	Name        string `json:"name,omitempty"`
	DownloadURL string `json:"download_url,omitempty"`
}

Template for gitignore

func (Template) String

func (t Template) String() string

type Templates

type Templates []Template

Templates is an array of template

func GetTemplates

func GetTemplates() (Templates, error)

GetTemplates retuens a list of templates

func (Templates) FilterByName

func (tt Templates) FilterByName(names []string) Templates

FilterByName all templates

func (Templates) Sort

func (tt Templates) Sort()

Sort templates alphabetically

Jump to

Keyboard shortcuts

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