Re: [go-nuts] Re: why defer function with parentheses

2018-01-29 Thread Flying
UTC+8, Michael Jones wrote: > > Flying, another way to think of it is that fn is not a function call, it > is a function pointer value--a value just like 3.14 or "true." It would not > make sense to defer a value, since defer is about "defer the invocation of > a f

[go-nuts] why defer function with parentheses

2018-01-27 Thread Flying
example : fn := func() { fmt.Println(10) } defer fn() my question is why use defer fn() not defer fn when we use fn() here doesn't it mean call it now ??? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

Re: [go-nuts] httpjson unmarshal data from html form like json.unmarshal

2018-01-08 Thread Flying
t functionality. > > cheers, > rog. > > On 8 January 2018 at 09:40, Flying <zjn.f...@gmail.com > > wrote: > > I have a little project, need to get data from html form. > > when the form items get more, i write this. here is the github url > >

[go-nuts] Re: httpjson unmarshal data from html form like json.unmarshal

2018-01-08 Thread Flying
from web url > > <https://github.com/suntong/lang/blob/master/lang/Go/src/ds/jsonfile-http.go> >. > > > On Monday, January 8, 2018 at 4:40:16 AM UTC-5, Flying wrote: >> >> I have a little project, need to get data from html form. >> when the form items get mor

[go-nuts] httpjson unmarshal data from html form like json.unmarshal

2018-01-08 Thread Flying
I have a little project, need to get data from html form. when the form items get more, i write this. here is the github url https://github.com/zjn1234/httpjson i searched, there is no library like this, so what do you guys think。 i will appreciate your suggestions -- You received this

[go-nuts] Re: const struct

2017-09-10 Thread Flying
Here is the explation of const from the go programmer lauguage specification A constant declaration binds a list of identifiers (the names of the constants) to the values of a list of constant expressions . 在 2017年9月8日星期五 UTC+8下午12:52:44,DrGo写道:

[go-nuts] Re: Go-kit middlewares

2017-09-06 Thread Flying
you can refer to golang chi opensource for middleware 在 2017年9月5日星期二 UTC+8下午11:13:40,Ilya Novikov写道: > > Hello!I would like to understand how middleware works in go-kit. I want to > write a middleware auth processor but do not understand how to describe the > logic of the process. > > That is,