mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
internal/ops: hide Ops methods by converting them to package functions
Ops is in the internal package ops, but external clients can reach its method through op.Ops.Internal. Hide them by converting them to internal package functions. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -24,7 +24,7 @@ type Event struct {
|
||||
}
|
||||
|
||||
func (p Op) Add(o *op.Ops) {
|
||||
data := o.Internal.Write1(ops.TypeProfileLen, p.Tag)
|
||||
data := ops.Write1(&o.Internal, ops.TypeProfileLen, p.Tag)
|
||||
data[0] = byte(ops.TypeProfile)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user