wechat

package module
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

README

Wechat-SDK

微信 Golang 版本SDK

Github Github

Golang GoDoc Go GitHub Release License


一、安装

go get -u github.com/go-pay/wechat-sdk
查看 Wechat-SDK 版本

版本更新记录

import (
    "github.com/go-pay/wechat-sdk"
    "github.com/go-pay/xlog"
)

func main() {
    xlog.Warn("Wechat-SDK Version: ", wechat.Version)
}


二、文档说明



三、其他说明

  • 请仔细查看参考各个平台下 *_test.go 使用方式
  • 有问题请加QQ群(加群验证答案:gopay),或加微信好友拉群。在此,非常感谢提出宝贵意见和反馈问题的同志们!

QQ群: 加微信拉群:



赞赏多少是您的心意,感谢支持!

微信赞赏码: 支付宝赞助码:



鸣谢

GoLand A Go IDE with extended support for JavaScript, TypeScript, and databases。

特别感谢 JetBrains 为开源项目提供免费的 GoLand 等 IDE 的授权

Documentation

Index

Constants

View Source
const (
	Success = 0

	DebugOff = 0
	DebugOn  = 1

	HeaderRequestID = "Request-ID"

	Version = "v1.1.6"
)

Variables

View Source
var (
	HostMap = map[Host]string{
		HostDefault:  "https://api.weixin.qq.com",
		HostDefault2: "https://api2.weixin.qq.com",
		HostSH:       "https://sh.api.weixin.qq.com",
		HostSZ:       "https://sz.api.weixin.qq.com",
		HostHK:       "https://hk.api.weixin.qq.com",
	}
)

Functions

This section is empty.

Types

type DebugSwitch

type DebugSwitch int8

type Host

type Host int
const (
	HostDefault Host = iota + 1
	HostDefault2
	HostSH // 上海
	HostSZ // 深圳
	HostHK // 香港
)

type Platform added in v1.1.0

type Platform string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL