diff options
author | Slack Coder <slackcoder@server.ky> | 2025-04-21 16:45:39 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2025-04-22 15:27:36 -0500 |
commit | d75e17a48934e4896963fb0fee78dbd53f4e780b (patch) | |
tree | 27a4fd16640846df846d36d2fc5b898189b68620 /internal/url.go | |
parent | e7dd47e8b683a51851883bf2918086963676d7cd (diff) | |
download | mirror-d75e17a48934e4896963fb0fee78dbd53f4e780b.tar.xz |
Implement staging and verificationv0.0.3
Ensure data integrity by supporting data staging and verification.
Diffstat (limited to 'internal/url.go')
-rw-r--r-- | internal/url.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/url.go b/internal/url.go index d7a712d..f5c0e17 100644 --- a/internal/url.go +++ b/internal/url.go @@ -19,6 +19,10 @@ func (u *URL) UnmarshalText(buf []byte) error { return nil } +func (u *URL) Copy() *URL { + return MustURL(u.String()) +} + func MustURL(arg string) *URL { u, err := url.Parse(arg) if err != nil { |