Thank you very much for this feedback. I have made a pull request to use 
debug/buildinfo.ReadFile as 
suggested: https://github.com/intercloud/gobinsec/pull/7

This is far better than calling go on command line.

Best regards

Le vendredi 15 avril 2022 à 11:11:09 UTC+2, se...@liao.dev a écrit :

> If you only need to target 1.18+, you can use `debug/buildinfo.ReadFile` 
> which doesn't require shelling out to go
>
>
> On Fri, Apr 15, 2022 at 7:03 AM Zhaoxun Yan <yan.z...@gmail.com> wrote:
>
>> That sounds great! Thanks.
>>
>> 在2022年4月15日星期五 UTC+8 05:55:27<kortschak> 写道:
>>
>>> On Thu, 2022-04-14 at 03:05 -0700, Michel Casabianca wrote: 
>>> > Any comment and contribution welcome. 
>>>
>>> Can I suggest that you use golang.org/x/sys/execabs rather than os/exec 
>>> in ExecCommand? 
>>>
>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to golang-nuts...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/454f35cf-6599-4fc1-9dd2-602137d58cb6n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/golang-nuts/454f35cf-6599-4fc1-9dd2-602137d58cb6n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/e2e74443-acb3-4e49-a850-8a18a0b7bc35n%40googlegroups.com.

Reply via email to