mirror of
https://github.com/silenceper/wechat.git
synced 2026-11-16 05:12:03 +08:00
rebase release-2.0
This commit is contained in:
1 parent
2c7d3aaf3e
commit
2423b58855
7 files changed
+97
-13
No files matched your search
@@ -1,15 +1,31 @@
|
||||
package wechat
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/silenceper/wechat/v2/miniprogram"
|
||||
miniConfig "github.com/silenceper/wechat/v2/miniprogram/config"
|
||||
payConfig "github.com/silenceper/wechat/v2/pay/config"
|
||||
|
||||
"github.com/silenceper/wechat/v2/officialaccount"
|
||||
offConfig "github.com/silenceper/wechat/v2/officialaccount/config"
|
||||
"github.com/silenceper/wechat/v2/pay"
|
||||
payConfig "github.com/silenceper/wechat/v2/pay/config"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
// Log as JSON instead of the default ASCII formatter.
|
||||
log.SetFormatter(&log.TextFormatter{})
|
||||
|
||||
// Output to stdout instead of the default stderr
|
||||
// Can be any io.Writer, see below for File example
|
||||
log.SetOutput(os.Stdout)
|
||||
|
||||
// Only log the warning severity or above.
|
||||
log.SetLevel(log.DebugLevel)
|
||||
|
||||
}
|
||||
|
||||
// Wechat struct
|
||||
type Wechat struct {
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user