Wed Jul 21 2021 22:01:57 GMT+0000 (Coordinated Universal Time)
Saved by @nhatphan108
func readFileContent(fileName string) string { file, err := os.Open(filename) if err != nil { return "" } content, err := ioutil.ReadAll(file) if err != nil { return "" } file.Close() return content }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments