Skip to content

Package name in generated doc string seems odd #117

Open
@FlorianLoch

Description

I have an interface for which I generate a mock using:

//go:generate go run github.com/gojuno/minimock/v3/cmd/minimock -g -s _mock.go -i ./api.MyClient -o ./internal/api/mocks/

It generates me the following code:

import (
	"context"
	"sync"
	mm_atomic "sync/atomic"
	mm_time "time"

	"github.com/florianloch/some_service/api"
	"github.com/gojuno/minimock/v3"
)

// MyClientMock implements mm_api.MyClient
type MyClientMock struct {

It of course does not affect compilation but it's irritating to get the package name prefixed with mm_ in the doc string.

If that is something worth fixing I could take a look at it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions