Re: [go-nuts] Calling methods from inside a function in same package

2020-07-21 Thread Tyler Compton
I think I'm very likely misunderstanding your question. Would you mind providing more detail? You can definitely call methods within a function, even if they're defined in the same package. In this example, I call a method from the type "myInt" in the main function: https://play.golang.org/p/AAjVZ

[go-nuts] Calling methods from inside a function in same package

2020-07-21 Thread Rudra
Hi, One can call global function of same package from inside a function, But I am curious if I can call a method from inside a function? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails fro