使用go写的微信jssdk

使用go写的微信jssdk

使用方法参考main.gogit

package main

import (
    "fmt"
    "sfwechat/jssdk"
)

func main() {
    jssdk := jssdk.New("wx02d6c9061******", "7acfb40fb2f70cd331a*******","http://a.com")
    config := jssdk.GetWechatConfig()
    fmt.Println(config)
}

在项目中的使用方式github

go get https://github.com/SmallForest/sfwechat

在项目中应用微信

import "github.com/SmallForest/sfwechat/jssdk"
func main() {
    jssdk := jssdk.New("wx02d6c9061******", "7acfb40fb2f70cd331a*******","http://a.com")
    config := jssdk.GetWechatConfig()
    fmt.Println(config)
}
相关文章
相关标签/搜索