引用第三方库
This commit is contained in:
9
main.go
9
main.go
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user