On Sun, Sep 23, 2018 at 8:24 PM, Jesse McNelis wrote:
> On Mon, Sep 24, 2018 at 5:33 AM, Tamás Király wrote:
>> Hi,
>>
>> can anyone explain why the following does not work?
>> i want to have the return value's address not the method itself.
>>
>> package main
>>
>> func main() {
>> //first
>>
On Mon, Sep 24, 2018 at 5:33 AM, Tamás Király wrote:
> Hi,
>
> can anyone explain why the following does not work?
> i want to have the return value's address not the method itself.
>
> package main
>
> func main() {
> //first
> addressofstring := ()
> }
>
> func method() string {
> return
Hi,
can anyone explain why the following does not work?
i want to have the return value's address not the method itself.
package main
func main() {
//first
addressofstring := ()
}
func method() string {
return "value"
}
https://play.golang.org/p/UbJ7SK0m9w6
regards
Tamás Király
--
You