github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2014/playground/removeall.go (about)

     1  // +build OMIT
     2  
     3  package main
     4  
     5  import (
     6  	"log"
     7  	"os"
     8  )
     9  
    10  func main() {
    11  	err := os.RemoveAll("/foo")
    12  	if err != nil {
    13  		log.Fatal(err)
    14  	}
    15  }