Skip to content

fixpoint/go-must

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
}