wechat

package module
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

README

Wechat-SDK

微信 Golang 版本SDK

Github Github

Golang GoDoc Drone CI 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/wechat-sdk/pkg/xlog"
)

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


二、文档说明



三、其他说明

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

QQ群: 加微信拉群:



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

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

License

Copyright 2021 Jerry

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Documentation

Index

Constants

View Source
const (
	Success = 0

	DebugOff = 0
	DebugOn  = 1

	Version = "1.1.4"
)

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
pkg
aes

Jump to

Keyboard shortcuts

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