hishtory/client/lib/net_disabled.go
David Dworken f79e4fce09
Add support for fully offline binary via compile-time 'offline' tag (#272)
* Add support for fully offline binary via compile-time 'offline' tag

* Update docs
2024-12-31 09:42:41 -08:00

15 lines
241 B
Go

//go:build offline
// +build offline
package lib
import "net/http"
func GetHttpClient() *http.Client {
panic("Cannot GetHttpClient() from a hishtory client compiled with the offline tag!")
}
func IsOfflineBinary() bool {
return true
}