generator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoTemplate

type GoTemplate struct {
	Command      *curl.Command
	RequestBody  string
	ResponseBody string
}

GoTemplate is a struct for the Go template

func NewGoTemplate

func NewGoTemplate(cmd *curl.Command, resp string) GoTemplate

NewGoTemplate creates a new GoTemplate

func (GoTemplate) ExecuteGoTemplate

func (h GoTemplate) ExecuteGoTemplate(useInlineStructs bool) (string, error)

ExecuteGoTemplate executes the Go template

func (GoTemplate) GenerateClientCode

func (h GoTemplate) GenerateClientCode() (string, error)

GenerateClientCode generates the client code which can be inserted into a function or method

Jump to

Keyboard shortcuts

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