common

package
v0.0.0-...-5ba5233 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GenTestSuccess = `` /* 349-byte string literal not displayed */

Variables

This section is empty.

Functions

func ConvertMethod

func ConvertMethod(path string) (method string)

ConvertMethod checkout the file belongs to dao or not

func GoImport

func GoImport(file string, bytes []byte) (res []byte, err error)

GoImport Use golang.org/x/tools/imports auto import pkg

func ParseArgs

func ParseArgs(args []string, res *[]string, index int) (err error)

ParseArgs parse input args

Types

type Parse

type Parse struct {
	Path    string
	Package string
	// Imports      []string
	Imports map[string]*param
	Funcs   []*struct {
		Name   string
		Method []*param
		Params []*param
		Result []*param
	}
}

func ParseFile

func ParseFile(files ...string) (parses []*Parse, err error)

ParseFile parse files to Parse structs

Jump to

Keyboard shortcuts

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