feat: initial goget release — modern IPv6-first download utility
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"codeberg.org/petrbalvin/goget/internal/protocol"
|
||||
protocolreg "codeberg.org/petrbalvin/goget/internal/protocol/register"
|
||||
)
|
||||
|
||||
var registerOnce sync.Once
|
||||
|
||||
func registerDefaultProtocols() {
|
||||
registerOnce.Do(func() {
|
||||
_, _ = protocolreg.RegisterAll(protocol.GlobalRegistry)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user