Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go toolchain "caster" #21

Merged
merged 1 commit into from
Nov 21, 2020
Merged

Go toolchain "caster" #21

merged 1 commit into from
Nov 21, 2020

Conversation

svengreb
Copy link
Owner

Resolves #20

To use the Go toolchain, also known as the `go` command [1], a new
caster [2], introduced in GH-14 [3], has been implemented.
To unify the handling of errors in the cast [5] package, a new
`ErrCast` [4] struct type has also been implemented.

The `Validate` function [6] of the new caster returns an error of type
`*cast.ErrCast` when the `go` binary executable does not exists at the
configured path or when it is also not available in the executable
search paths of the current environment.

[1]: https://golang.org/cmd/go
[2]: https://pkg.go.dev/github.com/svengreb/wand/pkg/cast#Caster
[3]: #14
[4]: https://pkg.go.dev/github.com/svengreb/wand/pkg/cast#ErrCast
[5]: https://pkg.go.dev/github.com/svengreb/wand/pkg/cast
[6]: https://pkg.go.dev/github.com/svengreb/wand/pkg/cast#Validate

GH-20
@svengreb svengreb added this to the 0.1.0 milestone Nov 21, 2020
@svengreb svengreb self-assigned this Nov 21, 2020
@svengreb svengreb merged commit 55e8eb4 into main Nov 21, 2020
@svengreb svengreb deleted the feature/gh-20-go-toolchain-caster branch November 21, 2020 21:28
@svengreb svengreb removed their assignment Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go toolchain "caster"
1 participant