PHP » GoLang |
login |
register |
about
|
file_get_contentsfile_get_contents[code=golang] func FileGetContents(filename string) (string, error) { data, err := ioutil.ReadFile(filename) return string(data), err } [/code] |