common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 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 ConvertHump

func ConvertHump(words string) string

ConvertHump convert words to hump style

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)

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)

Jump to

Keyboard shortcuts

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