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

Closed
cyantarek opened this issue Jan 5, 2020 · 3 comments
Closed

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

cyantarek opened this issue Jan 5, 2020 · 3 comments

Comments

@cyantarek
Copy link

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
@ianlancetaylor
Copy link
Contributor

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

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.

@ianlancetaylor
Copy link
Contributor

We aren't going to add questions to go mod init. In general we've decided that we won't store arbitrary configuration data in the go.mod file. Closing this issue.

@golang golang locked and limited conversation to collaborators Jan 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants