syntaxgo

package module
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 2 Imported by: 2

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/yyle88/syntaxgo

License

MIT License. See LICENSE.


Contributing

Contributions are welcome! To contribute:

  1. Fork the repo on GitHub (using the webpage interface).
  2. Clone the forked project (git clone https://github.com/yourname/repo-name.git).
  3. Navigate to the cloned project (cd repo-name)
  4. Create a feature branch (git checkout -b feature/xxx).
  5. Stage changes (git add .)
  6. Commit changes (git commit -m "Add feature xxx").
  7. Push to the branch (git push origin feature/xxx).
  8. Open a pull request on GitHub (on the GitHub webpage).

Please ensure tests pass and include relevant documentation updates.


Support

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

If you find this package valuable, give me some stars on GitHub! Thank you!!!

Thank you for your support!

Happy Coding with this package! 🎉

Give me stars. Thank you!!!


GitHub Stars

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