使用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)
}
相關文章
相關標籤/搜索