MCPcopy Create free account
hub / github.com/mpolden/echoip / UserAgent

Struct UserAgent

useragent/useragent.go:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5)
6
7type UserAgent struct {
8 Product string `json:"product,omitempty"`
9 Version string `json:"version,omitempty"`
10 Comment string `json:"comment,omitempty"`
11 RawValue string `json:"raw_value,omitempty"`
12}
13
14func Parse(s string) UserAgent {
15 parts := strings.SplitN(s, "/", 2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected