go2json

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package go2json ...

Package go2json ...

Package go2json ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateSet

type GenerateSet struct {
	Request  tstypes.Type
	Response tstypes.Type
}

GenerateSet ...

type GenerateType

type GenerateType struct {
	Meta    *MockMeta   `json:"meta"`
	Payload MockPayload `json:"payload"`
}

GenerateType mock json

type Generator

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

Generator go struct->json

func NewGenerator

func NewGenerator(types map[string]tstypes.Type) *Generator

NewGenerator Generator constructor

func (*Generator) Generate

func (g *Generator) Generate(dir string) error

Generate go struct -> json

type MockMeta

type MockMeta struct {
	Status       int         `json:"status"`
	MatchRequest interface{} `json:"match_request"`
}

MockMeta ...

type MockPayload

type MockPayload interface{}

MockPayload ...

Jump to

Keyboard shortcuts

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