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

proposal: Add package.json like support on go.mod #36393

Open
cyantarek opened this issue Jan 5, 2020 · 2 comments
Open

proposal: Add package.json like support on go.mod #36393

cyantarek opened this issue Jan 5, 2020 · 2 comments
Labels
Milestone

Comments

@cyantarek
Copy link

@cyantarek cyantarek commented Jan 5, 2020

As, many of you already know, in javascript, when using "npm init" command, it asks several questions for project level metadata. Also, developers can add custom commands in "script" section. Some other features like "repository, config" etc.

Can Go have a similar feature when using "go mod init" command? What do you guys think?

Or, in summary, can we have more rich features for go modules?

@gopherbot gopherbot added this to the Proposal milestone Jan 5, 2020
@gopherbot gopherbot added the Proposal label Jan 5, 2020
@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Jan 5, 2020

If I understand this correctly, it seems to me that a more Go-like approach would be options for go mod init.

In any case, can you give some specific examples of values that would be set? I don't understand your example of "repository, config." Thanks.

@kortschak
Copy link
Contributor

@kortschak kortschak commented Jan 7, 2020

It appears to be described here, in particular repository and config. ISTM these are things that just work with Go as part of the go tool, or are part of Go syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.