first commit
This commit is contained in:
11
utils/file.go
Normal file
11
utils/file.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
import "os"
|
||||
|
||||
func GetFileContent(path string) string {
|
||||
content, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return string(content)
|
||||
}
|
Reference in New Issue
Block a user