yoake/internal/comm/gotify/url.go

18 lines
267 B
Go
Raw Normal View History

2022-11-11 16:15:22 -06:00
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
}