Skip to content

Use of internal package #5

Open
@pinpox

Description

@pinpox

Hi,
this is just for discussion, not a real bug or issue.

Is the use of a "internal" package needed/useful? I find it unnecessarily complicated to contribute, for every change I have to fork, pull fork, change package import path to my user, make changes, change package import back, push. Otherwise I get an error when trying to run the tests:

binaryplease➜github.com/binaryplease/numgo(master)» go test .                                                                                                                                            
package github.com/binaryplease/numgo
	imports github.com/Kunde21/numgo/internal: use of internal package not allowed

This might be a stupid mistake as I'm pretty new to go. Is there a common workaround for this rather than changing the import path in the code forth and back all the time? I must admit I don't really understand the code in that folder very well though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions