package state func (x *UserStatePB) ToGo() UserState { return UserState{ ActiveColor: ColorFromInt(x.Color), } } func (u UserState) ToPB() *UserStatePB { return &UserStatePB{ Color: u.ActiveColor.ToInt(), } }