mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
* default user agent * DRY default user agent * useragent.go * moved to pkg/apiclient/useragent * lint * rename useragent.DefaultUserAgent() -> useragent.Default()
9 lines
165 B
Go
9 lines
165 B
Go
package useragent
|
|
|
|
import (
|
|
"github.com/crowdsecurity/go-cs-lib/version"
|
|
)
|
|
|
|
func Default() string {
|
|
return "crowdsec/" + version.String() + "-" + version.System
|
|
}
|