21 lines
243 B
Go
21 lines
243 B
Go
package opt
|
|
|
|
import (
|
|
"context"
|
|
"os"
|
|
)
|
|
|
|
var (
|
|
GlobalDebug bool
|
|
GlobalAddress string
|
|
GlobalDataDir string
|
|
)
|
|
|
|
func Init(ctx context.Context) error {
|
|
if err := os.MkdirAll(GlobalDataDir, 0755); err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|