yamlsorter

package
v0.0.0-...-fbbc848 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Contact  *string `yaml:"contact,omitempty"`
	Homepage *string `yaml:"homepage,omitempty"`
	Name     *string `yaml:"name"`
}

type Binary

type Binary struct {
	Checksum *string `yaml:"checksum"`
	Platform *string `yaml:"platform"`
	URL      *string `yaml:"url"`
}

type Plugin

type Plugin struct {
	Authors     []Author `yaml:"authors"`
	Binaries    []Binary `yaml:"binaries"`
	Company     *string  `yaml:"company"`
	Created     *string  `yaml:"created"`
	Description *string  `yaml:"description"`
	Homepage    *string  `yaml:"homepage"`
	Name        *string  `yaml:"name"`
	Updated     *string  `yaml:"updated"`
	Version     *string  `yaml:"version"`
}

type PluginsYAML

type PluginsYAML struct {
	Plugins []Plugin `yaml:"plugins"`
}

func (PluginsYAML) Len

func (p PluginsYAML) Len() int

func (PluginsYAML) Less

func (p PluginsYAML) Less(i, j int) bool

func (PluginsYAML) Swap

func (p PluginsYAML) Swap(i, j int)

type YAMLSorter

type YAMLSorter struct {
}

func (YAMLSorter) Sort

func (YAMLSorter) Sort(unsortedYAML []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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