FAQ
This little example helped me to understand it

http://play.golang.org/p/7cCk-b-J6q

Op donderdag 23 augustus 2012 07:18:14 UTC+2 schreef lewgun het volgende:
another solution:
https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/LTxXOgX3LWk


On Thu, Aug 23, 2012 at 1:14 PM, 平民四月份 <lew...@gmail.com <javascript:>>wrote:
thx ian.


On Thu, Aug 23, 2012 at 1:08 PM, Ian Lance Taylor <ia...@google.com<javascript:>
wrote:
On Wed, Aug 22, 2012 at 10:04 PM, 平民四月份 <lew...@gmail.com <javascript:>>
wrote:
Hi guys:
Why this code can not be compiled. and what can i do to pass it.

http://play.golang.org/p/EpghzyKaZx
If you want to name the Index method of the Server type, use
(*Server).Index, not s.Index.

Ian


--
Face the sea, for the spring flowers blossoming




--
Face the sea, for the spring flowers blossoming



--

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedNov 26, '12 at 11:35a
activeNov 26, '12 at 11:35a
posts1
users1
websitegolang.org

1 user in discussion

Ernest Micklei: 1 post

People

Translate

site design / logo © 2022 Grokbase