gocontext

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

context

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoContext

type GoContext struct {
	// contains filtered or unexported fields
}

func NewGoContext

func NewGoContext() *GoContext

func (*GoContext) Bind

func (ctx *GoContext) Bind(v interface{}) error

func (*GoContext) Invoke

func (ctx *GoContext) Invoke(fn interface{}) ([]reflect.Value, error)

func (*GoContext) InvokeSpecific

func (ctx *GoContext) InvokeSpecific(fn interface{}, names ...string) ([]reflect.Value, error)

func (*GoContext) Register

func (ctx *GoContext) Register(v interface{})

注册一个

func (*GoContext) RegisterAs

func (ctx *GoContext) RegisterAs(v interface{}, interfacePtr interface{})

用接口注册

type GoNamer

type GoNamer interface {
	GetGoName() string
}

唯一标识获取接口

Jump to

Keyboard shortcuts

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