Skip to content

SPANDigital/must

Repository files navigation

must

Must functions which panic on error, there is a Must2 and Must3 variant as well.

Open in Dev Containers Develop Go Action Workflow Status Main Go Action Workflow Status Tag status

See the samples

Have a look at samples for samples us usage.

Code example

package samples

import (
	. "github.com/spandigital/must"
	"net/url"
	"time"
)

var timeWhichMustParse = Must(time.Parse(time.RFC3339, "2006-01-02T15:04:05Z"))
var urlsWhichMustParse = Must(url.Parse("http://www.google.com"))

About

Must functions which panic on errors

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published