FAQ
That seems reasonable to me, and generally what I do to. So does that usage
include unit tests in your mind?

Based on your answer I would assume then that you would prefer to use
embedding to build another interface that has New() and/or Close() if
needed?
On Wednesday, February 3, 2016 at 6:10:00 AM UTC-8, Henry wrote:

I think you should provide an interface only if it is going to be used by
your package. Otherwise, let the callers determine their own interface.
That's what I would do.
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 4 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedFeb 1, '16 at 10:47p
activeFeb 4, '16 at 3:49p
posts4
users2
websitegolang.org

2 users in discussion

Jonathan Gaillard: 2 posts Henry: 2 posts

People

Translate

site design / logo © 2023 Grokbase