feat: rename browser layout and add generics util function

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2022-04-08 19:06:04 +08:00
parent 6e05315ac6
commit 4551931c89
24 changed files with 1717 additions and 244 deletions
-5
View File
@@ -53,11 +53,6 @@ func TimeEpochFormat(epoch int64) time.Time {
return t
}
func ReadFile(filename string) (string, error) {
s, err := ioutil.ReadFile(filename)
return string(s), err
}
func WriteFile(filename string, data []byte) error {
err := ioutil.WriteFile(filename, data, 0644)
if err != nil {