github.com/aarzilli/tools@v0.0.0-20151123112009-0d27094f75e0/net/http/upload/0_upload.go (about) 1 // Package upload posts, receives, unpacks and serves zipped files; 2 // It also provides a quasi static fileservers 3 package upload 4 5 import ( 6 "fmt" 7 "io" 8 ) 9 10 var pf func(format string, a ...interface{}) (int, error) = fmt.Printf 11 var pfRestore func(format string, a ...interface{}) (int, error) = fmt.Printf 12 var spf func(format string, a ...interface{}) string = fmt.Sprintf 13 var wpf func(w io.Writer, format string, a ...interface{}) (int, error) = fmt.Fprintf 14 15 // var baseDirX = "c:\\TEMP\\" 16 var docRootDataStore = "./" // remote prefix dir