Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Bool = false
provide value from implicit type +zz:wire
View Source
var Buffer = &bytes.Buffer{}
provide value and interface value +zz:wire:bind=io.Writer:aop +zz:wire
View Source
var Int = 0
origin wire set +zz:wire
Functions ¶
func Initialize_mock_mockString ¶
func Initialize_mock_mockString() (mockString, func(), error)
github.com/go-zing/gozz-doc-examples/wire03.mockString
Types ¶
type MockConfig ¶
type MockConfig struct{ Bool bool }
mock set struct type provide fields +zz:wire:set=mock:field=*
type String ¶
type String = string
use provider function to provide referenced type alias +zz:wire
func MockString ¶
func MockString() String
mock set string provide type from function +zz:wire:set=mock
func ProvideString ¶
func ProvideString() String
Click to show internal directories.
Click to hide internal directories.