builder

package
v0.0.0-...-0b605f8 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CategoryIcons = map[string]string{
	"Development":         "👨‍💻",
	"Transportation":      "🚇",
	"Entertainment":       "🍿",
	"Travel":              "✈️",
	"Finance & Economics": "📈",
	"Payments":            "💳",
	"Commerce":            "💰",
}

Functions

func FirstSentence

func FirstSentence(s string) string

func Render

func Render(l APIs, dir string) error

Types

type API

type API struct {
	Name          string   `yaml:"name"`
	Slug          string   `yaml:"slug"`
	Categories    []string `yaml:"categories"`
	Description   string   `yaml:"description"`
	URI           string   `yaml:"uri"`
	IsPaid        bool     `yaml:"is_paid"`
	DiscussionURI string   `yaml:"discussion_uri,omitempty"`
	Type          string   `yaml:"type"`
	Contact       string   `yaml:"contact,omitempty"`
	IsActive      bool     `yaml:"is_active"`

	SpecificationType string `yaml:"specification_type"`
	SpecificationUri  string `yaml:"specification_uri"`

	Libraries Libraries `yaml:"libraries,omitempty"`
}

func ReadList

func ReadList(path string) ([]*API, error)

type APILibrary

type APILibrary struct {
	Name          string `yaml:"name"`
	Description   string `yaml:"-"`
	HomepageURI   string `yaml:"homepage_uri" yaml:"homepage_uri,omitempty"`
	SourceCodeURI string `yaml:"source_code_uri" yaml:"source_code_uri"`
	Version       string `yaml:"version,omitempty"`
	Platform      string `yaml:"platform"`
}

type APIs

type APIs []*API

func (APIs) ByCategory

func (a APIs) ByCategory() map[string][]*API

func (APIs) Graveyard

func (a APIs) Graveyard() []*API

type Libraries

type Libraries []*APILibrary

func (Libraries) ByPlatform

func (a Libraries) ByPlatform() map[string][]*APILibrary

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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