golang

package
v0.3.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 15 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator is for generating golang client.

func NewGenerator

func NewGenerator(
	config *project.Config,
	apis *api.Definitions,
	rest string,
	pkg string,
	rootPkg string,
) *Generator

NewGenerator creates a golang client generator.

func (*Generator) Generate

func (g *Generator) Generate() (map[string][]byte, error)

Generate generate files

type Type

type Type interface {
	// Name returns type name.
	Name() string
	// Generate generates type codes.
	Generate() []byte
}

Type abstracts common ability from type declarations.

Jump to

Keyboard shortcuts

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