You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
345 B
Go
22 lines
345 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"goqs/monkey"
|
|
)
|
|
|
|
func main() {
|
|
err := monkey.CreateDir("files")
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
}
|
|
err = monkey.CreateDir("files/1")
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
}
|
|
err = monkey.CreateAndWriteFile("files/1/2.txt", []byte("hidiuniduini"))
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
}
|
|
}
|