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

16
client/lib/net.go Normal file
View File

@ -0,0 +1,16 @@
//go:build !offline
// +build !offline
package lib
import (
"net/http"
)
func GetHttpClient() *http.Client {
return http.DefaultClient
}
func IsOfflineBinary() bool {
return false
}