Documentation

Overview

Copyright (c) 2020 Lau All rights reserved. Use of this source code is governed by MIT License that can be found in the LICENSE file. Author: Lau <lauj@foxmail.com>

Copyright (c) 2020 Lau All rights reserved. Use of this source code is governed by MIT License that can be found in the LICENSE file. Author: Lau <lauj@foxmail.com>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpDo

func HttpDo(method, url string, data url.Values) ([]byte, error)

func HttpGet

func HttpGet(url string) ([]byte, error)

func HttpPost

func HttpPost(url string, data url.Values) ([]byte, error)

func JWT

func JWT(key string, payload jwtData) string

JWT

func VerifyJWT

func VerifyJWT(key, token string) (jwtData, bool)

Types

This section is empty.

Source Files