[go-nuts] goyaccfmt -- pretty format goyacc source code

2019-12-18 Thread Yi Wang
I wrote https://github.com/wangkuiyi/goyaccfmt to pretty format the goyacc grammar rule file of my other project https://sqlflow.org/sqlflow . Hope the tool could be useful for other goyacc users. -- You received this message because you are su

[go-nuts] Re: Appending static libraries to cgo LDFLAGS.

2019-12-18 Thread Justin Israel
On Thursday, December 19, 2019 at 11:23:41 AM UTC+13, Bruno Albuquerque wrote: > > I am trying to get a version of GoCV that works with OpenCV static > libraries. The final issue I have is that pkg-config is not really listing > all required libraries so i need to append some extra ones. Here

[go-nuts] Re: Ajuda sobre logica

2019-12-18 Thread Mazarafa7
Compreendi colega, mas obrigada pela ajuda. Saudações, Em quarta-feira, 18 de dezembro de 2019 16:19:25 UTC-3, Yamil Bracho escreveu: > > Este é o seu código com alguns arranjos (realmente mínimos): > > package main > > import ( > "fmt" > ) > > func main() { > var x int = 2 > v

[go-nuts] Appending static libraries to cgo LDFLAGS.

2019-12-18 Thread Bruno Albuquerque
I am trying to get a version of GoCV that works with OpenCV static libraries. The final issue I have is that pkg-config is not really listing all required libraries so i need to append some extra ones. Here is how my cgo configuration looks like without the extra libraries: #cgo !windows pkg-confi

[go-nuts] Re: Ajuda sobre logica

2019-12-18 Thread Yamil Bracho
Este é o seu código com alguns arranjos (realmente mínimos): package main import ( "fmt" ) func main() { var x int = 2 var y int = 32 fmt.Print("Informe o numero:") var primo bool for i := x; i < y+1; i++ { primo = true

[go-nuts] Ajuda sobre logica

2019-12-18 Thread arruda . rafa . ra
Olá, tudo bem? Estou iniciando meus estudos em Golang e honestamente, adorei a linguagem. Gostaria de saber qual meu erro, diante desse algoritmo que fiz em Go. Estou verificando numeros primos de 3 á 31. E a sua saida deve sair, e estou com problema de sintaxe dele, da um help ai gente 3

[go-nuts] Re: Help get me started on a project

2019-12-18 Thread silviucapota
Have a look at: https://github.com/chzyer/readline https://github.com/chzyer/readline/blob/master/example/readline-demo/readline-demo.go On Tuesday, 17 December 2019 09:10:28 UTC-5, Rich wrote: > > I need to write a program that runs an external program and the user needs > to interact with tha