utils

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendFile added in v1.1.11

func AppendFile(filename string) *os.File

func CreateFile added in v1.1.11

func CreateFile(filename string) *os.File

func PackageAndFuncs

func PackageAndFuncs(files ...string) (string, []string)

PackageAndFuncs 解析Go源程序包和方法.

func PackageAndStructs added in v1.1.11

func PackageAndStructs(files ...string) (string, []string)

func Parse

func Parse(files ...string) (*ast.File, error)

Parse Go源程序解析.

func SnakeCase added in v1.1.11

func SnakeCase(camelCase string) string

func UseCobra

func UseCobra(root *ast.File) bool

UseCobra 判断是否使用 spf13/cobra.

Types

This section is empty.

Jump to

Keyboard shortcuts

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