1 Go[ | ]

Go
Copy
package main
import (
"fmt"
"os/exec"
"path/filepath"
)
func init() {
exec.Command("touch", "/tmp/hello.yaml").Run()
exec.Command("touch", "/tmp/world.yml").Run()
}
func main() {
files, _ := filepath.Glob("/tmp/*.y*ml")
fmt.Println(files)
}
Loading
2 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.