Re: [go-nuts] Shellquote in stdlib

2022-12-12 Thread Martin Atkins
I don't think the Go command is using a shell to parse the value of the -gcflags option. I believe that the syntax for this option is handled by an internal function called quoted.Split

Re: [go-nuts] Shellquote in stdlib

2022-11-15 Thread Martin Atkins
Indeed, the rules for quoting and parsing command lines are considerably different even in different context on the same OS (Windows) and so successfully building a command line to be run requires detailed knowledge of the context in which it will be evaluated. Unix systems are at least relativ

[go-nuts] Re: RFC: function or interface?

2022-03-31 Thread Martin Atkins
>From the perspective of "what difference would it make" the only thing that comes immediately to my mind is that if you return an interface type that is designed so that only types in your own package can or need to implement it then you could potentially add other methods to it in future witho

[go-nuts] Re: Releasing a V2 module and interacting with git branches

2021-04-08 Thread Martin Atkins
I had some experiences with doing this sort of thing for what eventually became github.com/hashicorp/hcl/v2. I have some assorted notes to share about that experience, which I hope will substitute for a more definitive answer to your question "does this sound reasonable?", because I don't feel