Source File
errors.go
Belonging Package
github.com/pancsta/d2/d2layouts/d2talalayout/internal/layoutgraph
package layoutgraphimportvar (// ErrInvalidCandidate rejects a speculative layout candidate whose geometry// cannot be committed.ErrInvalidCandidate = errors.New("invalid layout candidate")// ErrNonImprovingCandidate rejects a valid candidate that does not improve// the current layout.ErrNonImprovingCandidate = errors.New("layout candidate did not improve"))// IsCandidateRejection reports whether err rejects only the current// speculative candidate. Callers must propagate every other error.func ( error) bool {return errors.Is(, ErrInvalidCandidate) || errors.Is(, ErrNonImprovingCandidate)}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |