entries

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasEntry

type AliasEntry struct {
	Type   string `json:"type"`
	Target string `json:"target"`
}

func NewAliasEntryFromJSON

func NewAliasEntryFromJSON(jsonBytes []byte) (AliasEntry, error)

NewAliasEntryFromJSON creates a new entry from JSON.

func (AliasEntry) Map

func (entry AliasEntry) Map() map[string]interface{}

type IEntry

type IEntry interface {
	Map() map[string]interface{}
}

func NewFromJSON

func NewFromJSON(jsonBytes []byte) (IEntry, error)

type ToothEntry

type ToothEntry struct {
	Type        string
	Tooth       string
	Author      string
	Description string
	Homepage    string
	License     string
	Name        string
	Repository  string
	Tags        []string
}

func NewToothEntryFromJSON

func NewToothEntryFromJSON(jsonBytes []byte) (ToothEntry, error)

NewToothEntryFromJSON creates a new entry from JSON.

func (ToothEntry) Map

func (entry ToothEntry) Map() map[string]interface{}

Jump to

Keyboard shortcuts

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