syntaxgo

package module
v0.0.0-...-e1522f1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 2 Imported by: 0

README

GitHub Workflow Status (branch) GoDoc Coverage Status Supported Go Versions GitHub Release Go Report Card

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/fabulouspan/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!!!


Starring

starring


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentPackageName

func CurrentPackageName() string

CurrentPackageName returns the package name of the caller's location. CurrentPackageName 返回调用者位置的包名。

func GetPkgName

func GetPkgName(path string) string

GetPkgName returns the package name of a given Go file path. 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