-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransfer.go
More file actions
33 lines (26 loc) · 905 Bytes
/
Copy pathtransfer.go
File metadata and controls
33 lines (26 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package raev
import "github.com/B9O2/raev/types"
type Transfer interface {
ToObject(any) (types.ExtendObject, error)
MakeSlice() types.ExtendSlice
AppendSlice(types.ExtendSlice, types.ExtendObject) types.ExtendSlice
MakeMap() types.ExtendMap
SetMap(types.ExtendMap, types.ExtendObject, types.ExtendObject) (types.ExtendMap, error)
ToValue(types.ExtendObject) (any, error)
ToClass(string, *types.Class) (types.ExtendClass, error)
ToMethod(types.Method) (types.ExtendMethod, error)
}
type BaseTransfer struct {
}
func (bt *BaseTransfer) MakeSlice() types.ExtendSlice {
return nil
}
func (bt *BaseTransfer) AppendSlice(types.ExtendSlice, types.ExtendObject) types.ExtendSlice {
return nil
}
func (bt *BaseTransfer) MakeMap() types.ExtendMap {
return nil
}
func (bt *BaseTransfer) SetMap(types.ExtendMap, types.ExtendObject, types.ExtendObject) (types.ExtendMap, error) {
return nil, nil
}