client_unsupport.go 435 B

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