new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
12
Task/Delete-a-file/Go/delete-a-file.go
Normal file
12
Task/Delete-a-file/Go/delete-a-file.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package main
|
||||
import "os"
|
||||
|
||||
func main() {
|
||||
os.Remove("input.txt")
|
||||
os.Remove("/input.txt")
|
||||
os.Remove("docs")
|
||||
os.Remove("/docs")
|
||||
// recursively removes contents:
|
||||
os.RemoveAll("docs")
|
||||
os.RemoveAll("/docs")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue