You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/service/wechatminiprogram/set.go

12 lines
232 B

package wechatminiprogram
import (
"context"
)
func (c *Client) SetAccessToken(ctx context.Context, accessToken string) string {
c.config.accessToken = accessToken
c.config.selfAccessToken = true
return c.config.accessToken
}