mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-03 15:46:23 -07:00
14 lines
250 B
Go
14 lines
250 B
Go
package config
|
|
|
|
import "os"
|
|
|
|
// copied from gcutil to avoid import loop
|
|
func findResource(paths ...string) string {
|
|
var err error
|
|
for _, filepath := range paths {
|
|
if _, err = os.Stat(filepath); err == nil {
|
|
return filepath
|
|
}
|
|
}
|
|
return ""
|
|
}
|