[go-nuts] Re: go vet configuration? to check variant of printf having to do with verbs

2022-07-26 Thread gocss
also found this so it is a known limitation: https://github.com/golang/go/issues/44350 On Tuesday, July 26, 2022 at 10:39:06 AM UTC-4 gocss wrote: > Appears 'go vet -printf.funcs loopErrMsgf' > does not detect incorrect verbs or lack thereof on anonymous functions ... >

[go-nuts] Re: go vet configuration? to check variant of printf having to do with verbs

2022-07-26 Thread gocss
Appears 'go vet -printf.funcs loopErrMsgf' does not detect incorrect verbs or lack thereof on anonymous functions ... :( as shown above, which is my desired use case. On Tuesday, July 26, 2022 at 10:02:19 AM UTC-4 gocss wrote: > Is there a way to configure 'go vet'

[go-nuts] go vet configuration? to check variant of printf having to do with verbs

2022-07-26 Thread gocss
Is there a way to configure 'go vet' to a variant of sprintf/printf that I rolled such loopErrMsgf := func(format string, params ...interface{}) string { errCnt++ return fmt.Sprintf("[checkIn:loopCnt:%d, errCnt:%d] error %s", loopCnt, errCnt, fmt.Sprintf(format, params

[go-nuts] Is WASM support planned in go 1.12 ?

2019-02-06 Thread gocss
while webassembly was considered experimental in go 1.11 is it planned in go 1.12 release later this month? If so will it's inclusion be considered non-experimental ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

[go-nuts] Re: go 1.11.4 build issue

2019-01-28 Thread gocss
what are the needed packages for ubuntu 18.04 to build for android ? On Friday, January 25, 2019 at 3:52:04 PM UTC-5, gocss wrote: > > xubuntu 18.04 LTS > > ./buildall.bash > > 2 areas of concern ... how to resolve? > > #1 ) ### Building linux-riscv64 > go

[go-nuts] go 1.11.4 build issue

2019-01-25 Thread gocss
xubuntu 18.04 LTS ./buildall.bash 2 areas of concern ... how to resolve? #1 ) ### Building linux-riscv64 go tool compile: exit status 2 compile: unknown architecture "riscv64" #2) /csspc/etc/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /tmp/go-link-501389779/go.o:(.data+

[go-nuts] go test/flag.NewFlagSet bug?

2017-12-12 Thread gocss
when I run the minimal program below it errors about NOT knowing -data flag: go test -v -args -data=x flag provided but not defined: -data Usage of /tmp/go-build454762170/github.com/phcurtis/flagexp/_test/flagexp.test: -test.bench regexp blah blah, if you change nfs=false ... and then it

[go-nuts] sanitize filename from post form upload

2017-08-30 Thread gocss
Is there go code to sanitize a filename [or filename(s) if ] when the handler is processing them so as to detect things such as ../ that might be buried within them ? Also is there a way to find out the full pathname? -- You received this message because you are subscribed to the Google Groups

[go-nuts] Re: building go1.7.5 ... api check failed

2017-01-28 Thread gocss
n1@tp13:/csspc/etc$ which go /csspc/etc/go/bin/go admin1@tp13:/csspc/etc$ admin1@tp13:/csspc/etc$ go version go version go1.7.5 linux/amd64 admin1@tp13:/csspc/etc$ On Saturday, January 28, 2017 at 11:06:18 AM UTC-5, gocss wrote: > > building in xubuntu 16.04 LTS > > # API che

[go-nuts] building go1.7.5 ... api check failed

2017-01-28 Thread gocss
building in xubuntu 16.04 LTS # API check stat /csspc/etc/go/src/cmd/api/run.go: no such file or directory 2017/01/28 10:51:46 Failed: exit status 1 2017/01/28 10:51:46 FAILED doing an ls of above directory: admin1@tp13:/csspc/etc/go/src$ ls /csspc/etc/go/src/cmd/api ls: cannot access '/csspc

[go-nuts] C references to Go functions

2016-12-03 Thread gocss
I want to call a go function from c. I have file main.go: package main import "fmt" import "C" //export MyFunction func MyFunction(arg1 int) int64 { fmt.Println("GO:MyFunction", "arg1=", arg1) return 1 } func main() { fmt.Println("GO:main") } I build this with: go build -buildmode=c-archi

[go-nuts] Re: go1.7.4 API check Fail

2016-12-02 Thread gocss
asm0.263s ok cmd/vet2.795s ok cmd/vet/internal/cfg0.005s 2016/12/02 12:24:28 Failed: exit status 1 root@csspc-base:/csspc/etc/go/src# On Friday, December 2, 2016 at 11:04:12 AM UTC-5, gocss wrote: > > during ./all.bash > # ../test > > # API check > sta

[go-nuts] go1.7.4 API check Fail

2016-12-02 Thread gocss
during ./all.bash # ../test # API check stat /csspc/etc/go/src/cmd/api/run.go: no such file or directory 2016/12/02 10:38:43 Failed: exit status 1 2016/12/02 10:38:43 FAILED root@csspc-base:/csspc/etc/go/src# is this a known issue? -- You received this message because you are subscribe