summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
00e0fb7)
This parameter is modified by the umask. The proper permissions are set
by os.Chmod() afterwards. Don't confuse the reader by using a value
which is not relevant.
}
func CreateFile(path string, data string, mode fs.FileMode) {
}
func CreateFile(path string, data string, mode fs.FileMode) {
- err := os.WriteFile(path, []byte(data), 0644)
+ err := os.WriteFile(path, []byte(data), 0600)
if err != nil {
panic(err)
}
if err != nil {
panic(err)
}