syntaxgo

package module
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 2 Imported by: 1

README

syntaxgo

syntaxgo is a wrapper around Go's go/ast Abstract Syntax Tree and Go's reflect package

syntaxgo is designed to make it easier to analyze code and then automate the generation.

CHINESE README

中文说明

Installation

go get github.com/yyle88/syntaxgo

License

This project is licensed under the MIT License. See the LICENSE file for details.


Support

Welcome to contribute to this project by submitting pull requests or reporting issues.

If you find this package helpful, give it a star on GitHub!

Thank you for your support!

Happy Coding with syntaxgo! 🎉

Give me stars. Thank you!!!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentPackageName

func CurrentPackageName() string

CurrentPackageName 这里的当前不是当前的意思,而是调用者调用时,就能得到调用位置的包名

func GetPkgName

func GetPkgName(path string) string

GetPkgName 获得某个go文件的包名

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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