models

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArgGenericListString

func GetArgGenericListString(pList []Arg) string

func GetArgListString

func GetArgListString(pList []Arg) string

func GetResultListString

func GetResultListString(pList []Arg) string

Types

type Arg

type Arg struct {
	Name string
	Type string
}

type File

type File struct {
	Imports         []Import
	Implementations []Implementation
}

type Generator

type Generator struct {
	Files []File
}

func (*Generator) RegisterFile

func (g *Generator) RegisterFile(f File)

type Implementation

type Implementation struct {
	Name       string
	Params     []Param
	Methods    []Method
	References []string
}

func (Implementation) ParamsToString

func (i Implementation) ParamsToString() (string, string)

type Import

type Import struct {
	Path string
	Name string
}

type Method

type Method struct {
	Name    string
	Params  []Arg
	Results []Arg
}

type Param

type Param struct {
	Name string
	Type string
}

Jump to

Keyboard shortcuts

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