引用第三方库

This commit is contained in:
fghwett committed 2023-12-21 11:35:10 +08:00
1 parent 695d1993f9
commit f0179fed9a
2 files changed
+14

No files matched your search

+9
View File
@@ -4,9 +4,18 @@ import (
"fmt"
"os"
"time"
gha "github.com/sethvargo/go-githubactions"
)
func main() {
username := gha.GetInput("username")
fmt.Printf("username is %s\n", username)
gha.SetOutput("time", time.Now().Format("2006-01-02 15:04:05"))
}
func old_version() {
username := readInputs()
fmt.Printf("username is %s\n", username)