mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-09 15:15:08 +02:00
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:
16
client/lib/net.go
Normal file
16
client/lib/net.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user