chore: update to go1.21rc2, drop support for go1.19

This commit is contained in:
wwqgtxx
2023-07-02 09:59:18 +08:00
parent c6b84b0f20
commit 8f1475d5d0
18 changed files with 47 additions and 118 deletions

View File

@ -48,7 +48,7 @@ func (p *Port) matchPortReal(portRef string) bool {
func NewPort(port string, adapter string, ruleType C.RuleType) (*Port, error) {
portRanges, err := utils.NewIntRanges[uint16](port)
if err != nil {
return nil, fmt.Errorf("%w, %s", errPayload, err.Error())
return nil, fmt.Errorf("%w, %w", errPayload, err)
}
if len(portRanges) == 0 {

View File

@ -23,7 +23,7 @@ func NewUid(oUid, adapter string) (*Uid, error) {
uidRange, err := utils.NewIntRanges[uint32](oUid)
if err != nil {
return nil, fmt.Errorf("%w, %s", errPayload, err.Error())
return nil, fmt.Errorf("%w, %w", errPayload, err)
}
if len(uidRange) == 0 {