The golang code which can get wechat jssdk.
Thanks to golang package mux
router | method | remarks |
---|---|---|
/jssdk/gettoken | get | get token |
/jssdk/getticket | get | get ticket |
/jssdk/getconfig | get | get signature |
/static/ | get | static server, you can change the static file path |
Change the property like this:
// appid
const Appid = "**********************************"
// secret
const AppSecret = "********************************"
which in jssdk.go.