Files
goget/pkg/api/register.go
T

20 lines
362 B
Go
Raw Normal View History

//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)
})
}