Re: [go-nuts] I don't know about callbacks in Golang

2018-05-07 Thread Jan Mercl
On Sat, May 5, 2018 at 2:52 AM Eduardo Moseis Fuentes 
wrote:

> HI everyone I´m Eduardo from Guatemala and I'm beginer. I'm interesting
in all scope golang in fact I was download a little book about it, but I
need learn more about callbacks because the book don´t has > enough
information on callbacks. May somebody tell me where can I find more
information?. HELP ME PLEASE THANKS God Bless you

Callback is most often used just as fancy term for having/passing around a
variable of a function type. Note that both the syntax and semantics of
`expr(args)' is the same regardless of expr being simply a name of a
function or any other expression of a function type.

-- 

-j

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] I don't know about callbacks in Golang

2018-05-05 Thread Justin Israel
Callbacks are not something that is considered a standard aspect to Go
programming, in the same sense as you might see them in something like
js/Node.js async programming. The fact that you mentioned Web programming
explains why you might have been exposed to the concept, when it is
describing your http handlers (function mapped to urls like  "/hello"). So
it is likely that you won't see too much specific training material on the
topic of "callbacks". But if you are interested in web services, you could
take a look at some of the tutorials on the curated awesome-go site:
https://github.com/avelino/awesome-go#tutorials

If you just want to see a generic example of passing functions as
arguments, to be used as callbacks:
https://play.golang.org/p/IvY3RCpEJvN

Justin


On Sun, May 6, 2018 at 12:49 PM Eduardo Moseis Fuentes 
wrote:

> Thank you to take time to respons me. Specifily I don't have a problem to
> solve in fact the problem is I don't know how the callbacks works. Well my
> goal is to learn golang and all its semantic and after that focus my time
> on  how to program in backend with go.. but I need to learn its semantic
> before,  and my book's name is " Learning-Go-latest " it has a topic named
> callbacks on page 29. I will look more references to learn callbacks or
> golang in general. Do you know about some reference online or offline maybe
> another book wich always is oriented on develop in the scope web Do you
> know if someone would like to have an apprentice?.of before hand thanks.
> God Bless you
>
> sorry by my bad english but I'am lerning too
>
> 2018-05-05 15:55 GMT-06:00 Justin Israel :
>
>> Can you explain what problem you actually want to solve by learning about
>> callbacks? Maybe there is a better learning reference to offer you based on
>> your actual goals.
>>
>> Justin
>>
>>
>> On Sat, May 5, 2018, 12:52 PM Eduardo Moseis Fuentes 
>> wrote:
>>
>>> HI everyone I´m Eduardo from Guatemala and I'm beginer. I'm  interesting
>>> in all scope golang in fact  I was download a little book about it, but I
>>> need learn more about callbacks because the book don´t has enough
>>> information on callbacks. May somebody  tell me where can I  find more
>>> information?. HELP ME PLEASE  THANKS God Bless you
>>>
>>> --
>>> 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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] I don't know about callbacks in Golang

2018-05-05 Thread Sokolov Yura
Callbacks are rarely used in Go's ecosystem. Most of time you will use 
callbacks only in your own libraries (if you put them in).
Unnamed functions are as simole as `callIt(func (arg Type, arg2 Type2) (res1 
Type, res2 Type) { res1, res2 = body(); return res1, res2}) `

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] I don't know about callbacks in Golang

2018-05-05 Thread Justin Israel
Can you explain what problem you actually want to solve by learning about
callbacks? Maybe there is a better learning reference to offer you based on
your actual goals.

Justin


On Sat, May 5, 2018, 12:52 PM Eduardo Moseis Fuentes 
wrote:

> HI everyone I´m Eduardo from Guatemala and I'm beginer. I'm  interesting
> in all scope golang in fact  I was download a little book about it, but I
> need learn more about callbacks because the book don´t has enough
> information on callbacks. May somebody  tell me where can I  find more
> information?. HELP ME PLEASE  THANKS God Bless you
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] I don't know about callbacks in Golang

2018-05-04 Thread Eduardo Moseis Fuentes
HI everyone I´m Eduardo from Guatemala and I'm beginer. I'm  interesting in 
all scope golang in fact  I was download a little book about it, but I need 
learn more about callbacks because the book don´t has enough information on 
callbacks. May somebody  tell me where can I  find more information?. HELP 
ME PLEASE  THANKS God Bless you

-- 
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.
For more options, visit https://groups.google.com/d/optout.