github.com/hsfzxjy/dgo/go@v0.2.0/pin/pchan/op.go (about)

     1  package pchan
     2  
     3  import (
     4  	dgo "github.com/hsfzxjy/dgo/go"
     5  	"github.com/hsfzxjy/dgo/go/pin/pcop"
     6  )
     7  
     8  type OpKind = pcop.OpKind
     9  type Op = pcop.Op
    10  
    11  func portOf(op Op) *dgo.Port                { return (*dgo.Port)(op.Port) }
    12  func AsDartCallback(op Op) dgo.DartCallback { return dgo.WrapDartCallback(op.Dcb, portOf(op)) }