Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 366 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 366 Bytes

BUPT Session

北邮统一登录网关 Session。用于需要登录的网络请求。

Usage

package main

import (
	"fmt"
	"net/http"

	bupt_session "github.com/OpenBUPT/session/bupt_session_go"
)

func main() {
	client := &http.Client{}
	client, err := bupt_session.Login(client, "username", "password")
	if err != nil {
		fmt.Println(err)
	}
}