mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 16:01:55 +03:00
Update docs
This commit is contained in:
@@ -40,6 +40,8 @@ func (h httpFile) String() string {
|
||||
return h.url
|
||||
}
|
||||
|
||||
// NewHTTP returns a file abstraction for HTTP/HTTPS endpoint. You also need to
|
||||
// provide a valid instance of [http.Client] to access it.
|
||||
func NewHTTP(client *http.Client, endpoint string) (File, error) {
|
||||
if client == nil {
|
||||
return nil, ErrBadHTTPClient
|
||||
|
||||
Reference in New Issue
Block a user