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
This commit is contained in:
David Dworken
2024-12-31 12:42:41 -05:00
committed by GitHub
parent ffc224e3d3
commit f79e4fce09
11 changed files with 118 additions and 8 deletions

View File

@ -0,0 +1,14 @@
//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
}