volexity/GoStrap

GitHub: volexity/GoStrap

GoStrap 是一个通过命令行指定 Go 库、Go 版本、CPU 架构和操作系统来快速生成和交叉编译 Go 示例工程的脚手架工具。

Stars: 5 | Forks: 2

# GoStrap GoStrap 是一个工具,用于使用一组 GO 库和 GO 版本轻松引导 GO 示例。 ## 如何安装 要安装 GoStrap,我们建议直接从 PyPi 拉取: ``` pip install gostrap ``` 这将安装 GoStrap 及其必要的依赖项。 ### 从源码构建 如果您希望从源码构建并安装 GoStrap,请使用 Hatch 的常规构建命令: ``` hatch build ``` 构建后的归档文件将作为 .whl 文件放置在“dist”目录中。 要安装 GoStrap,只需使用 pip 安装该 .whl 文件即可。 ``` pip install dist/gostrap-*.whl ``` ## 命令行使用 安装完成后,将提供一个新的实用程序 `gostrap`。 ``` usage: gostrap [-h] [-l [LIBS ...]] [-g [VERSIONS ...]] [-a ARCH] [-p PLATFORM] [-f] [-s] options: -h, --help show this help message and exit -l [LIBS ...], --libs [LIBS ...] List of GO libs to include in the generated samples. -g [VERSIONS ...], --go [VERSIONS ...] List of GO version to build the samples with. -a ARCH, --arch ARCH Target CPU architecture. -p PLATFORM, --platform PLATFORM Target Operaring System. -f, --force Force build existing samples. -s, --show Show available go versions ``` 以下是使用 GoStrap 的典型工作流: ``` gostrap --libs "set,of,libs" --go "go1.23.4,go1.14" --arch "AMD64" --platform "Windows" ```
标签:Go语言, SOC Prime, 开发工具, 日志审计, 环境管理, 程序破解, 脚手架, 自动化构建, 逆向工具