Re: [go-nuts] Picnic Senior Go Dev

2022-11-08 Thread Yamil Bracho
Hi, Giorgi and nice to meet you. I am interested in this position so enclosed my resume for your reference. Just let me know if you need any additional information. Best Regards, Yamil El mar, 8 nov 2022 a las 10:54, Giorgi Dalakishvili () escribió: > Hello Go Devs, I am Giorgi Tech recruiter a

[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

Re: [go-nuts] Pointer to the loop variable

2019-09-10 Thread Yamil Bracho
Then turn vo into a Vertex variable, not a pointer var vp Vertex = Vertex{} ... if v.X == 3 { vp = v } …. This time vp will be a copy of v, Maybe you have to give some known values and exceptional case for your domain, I mean, vp Vertex = { -1, -1} or any values your are positive does n

[go-nuts] Re: Pointer to the loop variable

2019-09-10 Thread Yamil Bracho
vp is taking the address of v, so when the loop ends, v is the last element in the slide and therefore *vp is {0,0} Add a break to the condition when you assign vp, say if v.X == 3 { vp = &v break } HTH, Yamil El martes, 10 de septiembre de 2019, 14:13:40 (UTC-5), Tong Sun escribió: > > I'm e

Re: [go-nuts] Problems with Text Template

2019-06-17 Thread Yamil Bracho
ing converted to a > HTML friendly form. > > On Fri, Jun 14, 2019 at 6:28 PM Yamil Bracho > wrote: > >> Yes, I am using text/template... >> >> El viernes, 14 de junio de 2019, 19:07:24 (UTC-4), Burak Serdar escribió: >>> >>> >>> Are you

Re: [go-nuts] Problems with Text Template

2019-06-14 Thread Yamil Bracho
Hi, Yes, I am using text/template... El viernes, 14 de junio de 2019, 19:07:24 (UTC-4), Burak Serdar escribió: > > On Fri, Jun 14, 2019 at 4:09 PM Yamil Bracho > wrote: > > > > I am building a kind of code generator based in golang templates and I > have probl

[go-nuts] Problems with Text Template

2019-06-14 Thread Yamil Bracho
I am building a kind of code generator based in golang templates and I have problems with some characters. For example if I have got this line in my template public class {{.Name}}Validator : AbstractValidator<{{.Name}}Input> is converted to this in my output file public class GetLoginMarketCo

Re: [go-nuts] Pointer declaration syntax

2019-03-10 Thread Yamil Bracho
& just returns an memory address and a variable is just that, a memory address. That the reason you can not apply & to a type... El dom., 10 mar. 2019 a las 10:41, 박민우 () escribió: > I am new to Go and I have read Go;s-declaration-syntax > document

[go-nuts] Re: Arrays

2019-01-14 Thread Yamil Bracho
It could be : a := [3][4]string{"1 1", "1 2", "1 3", "1 4", "2 1", "2 2", "2 3", "2 4", "3 1", "3 2", "3 3", "3 4" } or var a = [3][4]string for (row = 0; row < 3; row++) { for (col = 0; col < 4; col++) { a[row][col] = fmt.Sprintf("%d %d", (row+1), (col+1) } } El lunes, 14 de

[go-nuts] Re: last pointer standing

2018-09-06 Thread Yamil Bracho
You are not creating a new pointer, so just do c1.Lookup = &LookupCode{xt1.CodeId, xt1.Description, xt1.Active} El jueves, 6 de septiembre de 2018, 14:59:44 (UTC-5), davidg...@gmail.com escribió: > > Am looking for insight into why the dataArray_LookupCode output array is > partially correct. >

[go-nuts] Re: last pointer standing

2018-09-06 Thread Yamil Bracho
El jueves, 6 de septiembre de 2018, 14:59:44 (UTC-5), davidg...@gmail.com escribió: > > Am looking for insight into why the dataArray_LookupCode output array is > partially correct. > The newUUID() function correctly assigns to each element of the > dataArray_LookupCode array, but the *LookupC

[go-nuts] Re: Help

2018-09-05 Thread Yamil Bracho
Just use a Mongo database driver, for example https://github.com/mongodb/mongo-go-driver HTH, Yamil El miércoles, 5 de septiembre de 2018, 10:07:08 (UTC-5), Kathiresh Kumar escribió: > > How can I connect golang with mongoDB > -- You received this message because you are subscribed to t

[go-nuts] Re: help seek: creating and using go package

2018-09-04 Thread Yamil Bracho
And what exactly is the problem ? Well, If you have to access n and d in the Nunm struct you have to specify them in uppercase. HTH, Yamil El martes, 4 de septiembre de 2018, 10:32:40 (UTC-5), Sayan Shankhari escribió: > > Hello Masters, > Probably I am making some nonsense post here and distur