file_put_contents

file_put_contents

[code=golang]
func FilePutContents(filename string, data string, mode os.FileMode) error {
	return ioutil.WriteFile(filename, []byte(data), mode)
}
[/code]