yoake/internal/comm/gotify/url.go
2022-11-11 17:16:53 -05:00

17 lines
267 B
Go

package gotify
import "net/url"
var (
urlMessage = urlMustParse("/message")
urlHealth = urlMustParse("/health")
urlVersion = urlMustParse("/version")
)
func urlMustParse(s string) *url.URL {
u, err := url.Parse(s)
if err != nil {
panic(err)
}
return u
}