23 lines
246 B
Go
23 lines
246 B
Go
![]() |
package main
|
||
|
|
||
|
import (
|
||
|
"embed"
|
||
|
|
||
|
"github.com/opentdp/wechat-rest/args"
|
||
|
"github.com/opentdp/wechat-rest/httpd"
|
||
|
)
|
||
|
|
||
|
//go:embed public
|
||
|
var efs embed.FS
|
||
|
|
||
|
func main() {
|
||
|
|
||
|
args.Efs = &efs
|
||
|
|
||
|
c := args.Config{}
|
||
|
c.Init().Unmarshal()
|
||
|
|
||
|
httpd.Server()
|
||
|
|
||
|
}
|