Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 809 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 809 Bytes

go-must

Test Go Report Card GoDoc license

go-must is a package to provide Must[T any](v T, err error) T for convenience.

Usage

package main

import (
	"fmt"
	"net/url"

	"github.com/fixpoint/go-must"
)

func main() {
	u := must.Must(url.Parse("https://example.com"))
	fmt.Printf("%v\n", u)
}