Merge pull request #2 from tobiichi3227/golang-version

add golang version
This commit is contained in:
ChenKaiLiuG
2025-04-02 23:13:15 +08:00
committed by GitHub

16
run/print.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"fmt"
"os"
)
func main() {
filename := "找找自己問題.txt"
data, err := os.ReadFile(filename)
if err != nil {
fmt.Printf("無法讀取檔案 '%v': %v\n", filename, err)
} else {
fmt.Print(string(data))
}
}