client_unsupport.go 388 B

12345678910111213141516171819
  1. // +build !linux linux,!cgo
  2. //Package msgaudit for unsupport platform
  3. package msgaudit
  4. import (
  5. "fmt"
  6. "github.com/silenceper/wechat/v2/work/config"
  7. )
  8. // Client 会话存档
  9. type Client struct {
  10. }
  11. // NewClient new
  12. func NewClient(cfg *config.Config) (*Client, error) {
  13. return nil, fmt.Errorf("会话存档功能目前只支持Linux平台运行,并且打开设置CGO_ENABLED=1")
  14. }