# test-go **Repository Path**: aisylearn/test-go ## Basic Information - **Project Name**: test-go - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-05-12 - **Last Updated**: 2026-05-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Test Go Project 简单的Go测试项目,用于验证Drone CI配置。 ## 项目结构 ``` test-go/ ├── main.go # 主程序 ├── main_test.go # 测试文件 ├── go.mod # Go模块定义 └── .drone.yml # Drone CI配置 ``` ## 功能 - 打印 "Hello from Drone CI!" - 包含简单的单元测试 ## Drone CI 流水线 ``` test → build → run → notify ``` ### 步骤说明 1. **test** - 运行单元测试 2. **build** - 编译二进制文件 3. **run** - 运行程序并打印输出 4. **notify** - 发送构建通知 ## 本地测试 ```bash # 运行测试 go test -v # 构建 go build -o app . # 运行 ./app ``` ## 触发条件 - push到main/master/dev分支 - 打tag