Initial go code (#7)

Reviewed-on: #7
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
phoenix
2025-07-27 19:36:32 +00:00
committed by phoenix
parent c930c146e5
commit 75dd476d71
4 changed files with 55 additions and 1 deletions
+42
View File
@@ -0,0 +1,42 @@
name: Go
on:
push:
branches: [ main, go_migr ]
pull_request:
branches: [ main, go_migr ]
jobs:
build:
runs-on: ubuntu-latest # You can change this to macos-latest or windows-latest if needed
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.24.5' # You can specify a specific version or 'stable'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Run gofmt (optional)
# Uncomment to check code formatting with gofmt
run: |
if [ -n "$(gofmt -l.)" ]; then
echo "Go code is not formatted. Please run 'gofmt -w.' to fix it."
exit 1
fi
- name: Run golint (optional)
# Uncomment to check code style with golint
run: |
if [ -n "$(golint./...)" ]; then
echo "Go code has style issues. Please run 'golint./...' to see them."
exit 1
fi
+1 -1
View File
@@ -1 +1 @@
/clean_file
+3
View File
@@ -0,0 +1,3 @@
module git.kundeng.us/phoenix/clean_file
go 1.24.5
+9
View File
@@ -0,0 +1,9 @@
package main
import "fmt"
const VERSION = "0.4.100"
func main() {
fmt.Println("clean_file")
}