Re: [go-nuts] method type

2016-10-03 Thread 'Jyotiswarup Raiturkar' via golang-nuts
he method on *Test itself, > which has the correct signature: https://play.golang.org/p/NKGBDse-9n > > On Mon, Oct 3, 2016 at 5:36 PM, 'Jyotiswarup Raiturkar' via golang-nuts < > golang-nuts@googlegroups.com> wrote: > >> Hello All, >> >> Is it possibl

[go-nuts] method type

2016-10-03 Thread &#x27;Jyotiswarup Raiturkar&#x27; via golang-nuts
Hello All, Is it possible to define a type for a method . Something like below for f Arent methods basically syntactic sugar for functions? type Test struct { A string } func (t *Test) P() { fmt.Println(t.A) } type AttribSetter func(t *Test) var f AttribSetter t := &Test{"meow"} f = AttribS

[go-nuts] Re: Which web framework is recommended to use with GO?

2016-09-28 Thread &#x27;Jyotiswarup Raiturkar&#x27; via golang-nuts
i've used https://github.com/gin-gonic/gin/ for a minimalistic framework, gets you started in no time. ( needs an MR for go v 1.6+, not sure if it was merged yet) At the other end of the spectrum in revel : https://revel.github.io/ which is very much like RoR On Wednesday, 28 September 2016 1