-
Notifications
You must be signed in to change notification settings - Fork 0
/
followerlist.go
40 lines (30 loc) · 1013 Bytes
/
followerlist.go
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
34
35
36
37
38
39
40
package v2jsonpb
import "google.golang.org/protobuf/reflect/protoreflect"
type V2JsonProtobufListFollower struct {
protoreflect.List
}
func (v V2JsonProtobufListFollower) Len() int {
return v.List.Len()
}
func (v V2JsonProtobufListFollower) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage(&V2JsonProtobufFollower{v.List.Get(i).Message()})
}
func (v V2JsonProtobufListFollower) Set(i int, value protoreflect.Value) {
panic("implement me")
}
func (v V2JsonProtobufListFollower) Append(value protoreflect.Value) {
v.List.Append(value)
}
func (v V2JsonProtobufListFollower) AppendMutable() protoreflect.Value {
panic("implement me")
}
func (v V2JsonProtobufListFollower) Truncate(i int) {
panic("implement me")
}
func (v V2JsonProtobufListFollower) NewElement() protoreflect.Value {
newelement := v.List.NewElement()
return protoreflect.ValueOfMessage(&V2JsonProtobufFollower{newelement.Message()})
}
func (v V2JsonProtobufListFollower) IsValid() bool {
panic("implement me")
}