use go, instead of c sources
fix some returns
skip file perms retrieval
check missed error
correct use of go maps
rename randString to randBytes