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
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
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