README ¶ 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) } } Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Login(client *http.Client, username, password string) (*http.Client, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Login ¶ func Login(client *http.Client, username, password string) (*http.Client, error) Types ¶ This section is empty. Source Files ¶ View all Source files session.go Click to show internal directories. Click to hide internal directories.