This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package user | |
import "context" | |
// helper defines helper functions that are used in this package. | |
type helper interface { | |
doSomething(ctx context.Context) error | |
} | |
type helperDefault struct {} | |
func (h *defaultHelper) doSomething(ctx context.Context) error { | |
... | |
return nil | |
} | |
type helperMock struct {} | |
// doSomething - mock of `doSomething` method. | |
func (h *helperMock) doSomething(ctx context.Context) error { | |
... | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment