wire03

package module
v0.0.0-...-6e28dac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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 NullString

type NullString nullString

provide referenced type +zz:wire

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

type Target

type Target struct {
	Buffer     *bytes.Buffer
	Writer     io.Writer
	NullString NullString
	Int        int
}

+zz:wire:inject=/

func Initialize_Target

func Initialize_Target() (*Target, func(), error)

github.com/go-zing/gozz-doc-examples/wire03.Target

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL