diff options
author | Slack Coder <slackcoder@server.ky> | 2024-10-02 16:49:36 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2024-10-02 17:01:48 -0500 |
commit | 2597c03d1555e00dec59830b7de75e7090208e05 (patch) | |
tree | 5642202b4621ea722ee85b322d79bbad17894026 /internal/github/github.go | |
parent | b81d017b42cc814e603de2b49e4b78362ae73f2a (diff) | |
download | mirror-2597c03d1555e00dec59830b7de75e7090208e05.tar.xz |
config: Use TOML
TOML is simple for users, and it is used in notably projects like
rustlang. It also provides comments!
Diffstat (limited to 'internal/github/github.go')
-rw-r--r-- | internal/github/github.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/github/github.go b/internal/github/github.go index bf35a6a..b2b1987 100644 --- a/internal/github/github.go +++ b/internal/github/github.go @@ -4,12 +4,13 @@ import ( "fmt" "io" "net/http" - "net/url" "os" "path" "path/filepath" "regexp" "time" + + "git.server.ky/slackcoder/mirror/internal" ) type Client struct { @@ -192,7 +193,7 @@ func (c *Client) download(dst string, src string) error { return nil } -func (c *Client) MirrorAssets(dst *url.URL, src *url.URL) error { +func (c *Client) MirrorAssets(dst *internal.URL, src *internal.URL) error { if src.Hostname() != "github.com" { return fmt.Errorf("host must be github.com") } |