utils

package
v0.0.0-...-b9b0a6d Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProp

func CheckProp(ident *Ident, name string) bool

func CheckPtrStructName

func CheckPtrStructName(selExpr *SelectorExpr, name string) bool

CheckPtrStructName is a function used to check struct name like r.FormFile, can check r *http.Request struct name is 'Request'

func CheckStarProp

func CheckStarProp(ident *Ident, name string) bool

func CheckStructName

func CheckStructName(selExpr *SelectorExpr, name string) bool

func CollectGoFiles

func CollectGoFiles(directory string, ignoreDirs []string) ([]string, error)

func ReplaceParamsInStr

func ReplaceParamsInStr(s string) string

func RunGoGet

func RunGoGet(path, repo string)

func RunGoImports

func RunGoImports(path string)

func SearchAllDirHasGoMod

func SearchAllDirHasGoMod(path string) (dirs []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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