forked from daeuniverse/dae
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
32 lines (26 loc) · 641 Bytes
/
main.go
File metadata and controls
32 lines (26 loc) · 641 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//go:build linux
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <dae@v2raya.org>
*/
package main
import (
"net/http"
"os"
"time"
"github.com/daeuniverse/dae/cmd"
"github.com/daeuniverse/dae/common/json"
jsoniter "github.com/json-iterator/go"
"github.com/json-iterator/go/extra"
// _ "net/http/pprof"
)
func main() {
// go http.ListenAndServe("0.0.0.0:8000", nil)
jsoniter.RegisterTypeDecoder("bool", &json.FuzzyBoolDecoder{})
extra.RegisterFuzzyDecoders()
http.DefaultClient.Timeout = 30 * time.Second
if err := cmd.Execute(); err != nil {
os.Exit(1)
}
os.Exit(0)
}