>
>
> I'm not confident that there is now more documentation in this thread in
> regards to go forward than there is anywhere else on the web.
>
I meant to say "I'm now confident that there is more ..."
What it does:
It reads an entire source package and outputs a single type alias file that
describes the package.
The idea being that you may have few major breaking changes that need a new
function definition or a new type, but the majority of code could stay the
same between your v1 and v2, and it may be possible to fix many bugs or add
many features to both v1 and v2 simultaneously this way.
How to use it:
pushd ~/Code/github.com/example/go-foo
cat go.mod
> module github.com/example/go-foo
goforward github.com/example/go-foo/barpkg
github.com/example/go-foo/barpkg/v2
What the result looks like:
ls barpkg/v2/
> forward.go
cat forward.go
> // generated by goforward github.com/example/go-foo/barpkg
> github.com/example/go-foo/barpkg/v2
> package adapter
> import (
> "time"
> "github.com/example/go-foo/barpkg"
> )
// Sprockets by spacely are the best
> var Sprocket = barpkg.Sprocket
// Widget does some such or other
> type Widget = barpkg.Widget
> // New returns a Widget that's guaranteed to break by exp
func New(exp time.Time) *Widget {
> return &barkpkg.New(exp)
> }
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/b20f22e1-3385-4a7c-8e74-5b0019c123c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.