FAQ
2014. augusztus 24., vasárnap 12:05:57 UTC+2 időpontban i...@bodokaiser.io
a következőt írta:
Hello Gophers!

I am wondering whats the point of interfaces which only define methods and
not also exported fields.
This has been questioned answered and already here:
https://groups.google.com/forum/#!searchin/golang-nuts/interface$20methods/golang-nuts/ZJ5DEv_36S8/Pnbgq-NrDecJ

Answer for your concrete problem: create a "Mongo()" method.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedAug 24, '14 at 10:06a
activeAug 24, '14 at 10:20a
posts2
users2
websitegolang.org

2 users in discussion

Tamás Gulácsi: 1 post I: 1 post

People

Translate

site design / logo © 2022 Grokbase