Documentation ¶
Index ¶
- func Encode(m golog.Machine, obj interface{}) golog.Machine
- func GenerateAccessor(name string, t reflect.Type, f reflect.StructField) (string, golog.ForeignPredicate)
- func GenerateAccessors(obj interface{}) map[string]golog.ForeignPredicate
- func GenerateMethod(name string, m reflect.Method) (string, golog.ForeignPredicate)
- func GenerateMethods(obj interface{}) map[string]golog.ForeignPredicate
- func IsNative(t term.Term) bool
- func NativeNil(m golog.Machine, args []term.Term) golog.ForeignReturn
- func NewNativeMachine(interactive bool) golog.Machine
- type Argument
- type Decoder
- type Encoder
- type ForeignCall
- type Marshaler
- type Native
- type PrologStringer
- type Signature
- type Unmarshaler
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAccessor ¶
func GenerateAccessor(name string, t reflect.Type, f reflect.StructField) (string, golog.ForeignPredicate)
func GenerateAccessors ¶
func GenerateAccessors(obj interface{}) map[string]golog.ForeignPredicate
func GenerateMethod ¶
func GenerateMethods ¶
func GenerateMethods(obj interface{}) map[string]golog.ForeignPredicate
func NewNativeMachine ¶
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder() *Encoder
type ForeignCall ¶
type ForeignCall struct { Signature Signature Name string Arity uint Method reflect.Method Type reflect.Type Field reflect.StructField }
func (*ForeignCall) Accessor ¶
func (fc *ForeignCall) Accessor(m golog.Machine, args []term.Term) golog.ForeignReturn
func (*ForeignCall) Predicate ¶
func (fc *ForeignCall) Predicate(m golog.Machine, args []term.Term) golog.ForeignReturn
func (*ForeignCall) String ¶
func (fc *ForeignCall) String() string
type PrologStringer ¶
type PrologStringer interface {
PrologString() string
}
Click to show internal directories.
Click to hide internal directories.