hrm/os_android.go

22 lines
284 B
Go
Raw Normal View History

2019-10-28 12:46:57 -04:00
package main
import (
"log"
2019-10-28 12:46:57 -04:00
"gioui.org/app"
)
var confDir string
2019-11-22 16:44:26 -05:00
var fontSize float32 = 24
2019-10-28 12:46:57 -04:00
func getConfDir() string {
if confDir == "" {
var err error
confDir,err = app.DataDir()
if err != nil {
log.Fatal("Cannot get configuration directory")
}
2019-10-28 12:46:57 -04:00
}
return confDir
}