草庐IT

doLoginAndReadDestinations1

全部标签

go - 如何在 go 中模拟函数?

packagemainimport("net/http""sync""time")typeSessionInterface1interface{doLoginAndReadDestinations1()bool}typeSession1struct{sessionCookiestringmuxsync.MutexsessionTimetime.TimetargetAddressstringcurrentJwtstringtransport*http.Transport}varcurrentSession1Session1funcmain(){currentSession1.verify