add base files

This commit is contained in:
Jeff Becker
2016-01-28 10:16:26 -05:00
parent 581742fcc4
commit 67d49585af
28 changed files with 634 additions and 0 deletions

14
lib/common/utils.go Normal file
View File

@ -0,0 +1,14 @@
package common
import (
"os"
)
// check if a file is there and writeable
func FileExists(fname string) (exists bool) {
_, err := os.Stat(fname)
if err == nil {
exists = true
}
return
}