tool

package
v0.18.23 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Package Package `json:"package" toml:"package"`
	Mod     *Mods   `json:"mod" toml:"mod"`
	Pkg     *Mod    `json:"pkg" toml:"pkg"`
	Proto   Protos  `json:"proto" toml:"proto"`
}

func New

func New(f string) (*Config, error)

type Mod

type Mod struct {
	Name    string   `json:"name" toml:"name"`
	Alias   string   `json:"alias" toml:"alias"`
	Type    string   `json:"type" toml:"type"`
	Version string   `json:"version" toml:"version"`
	Main    string   `json:"main" toml:"main"`
	Dir     string   `json:"dir" toml:"dir"`
	Output  string   `json:"output" toml:"output"`
	Flags   []string `json:"flags" toml:"flags"`
}

type Mods

type Mods []Mod

type Package

type Package struct {
	Kind      string `json:"kind" toml:"kind"`
	Namespace string `json:"namespace" toml:"namespace"`
}

type Proto

type Proto struct {
	Name    string   `json:"name" toml:"name"`
	Pb      string   `json:"pb" toml:"pb"`
	Group   string   `json:"group" toml:"group"`
	Version string   `json:"version" toml:"version"`
	Type    string   `json:"type" toml:"type"`
	Plugins []string `json:"plugins" toml:"plugins"`
}

type Protos

type Protos []Proto

Jump to

Keyboard shortcuts

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