gitlab.com/evatix-go/core@v1.3.55/chmodhelper/chmodins/GetRwxFullLengthError.go (about)

     1  package chmodins
     2  
     3  import (
     4  	"gitlab.com/evatix-go/core/errcore"
     5  )
     6  
     7  // GetRwxFullLengthError must be 10 chars length
     8  func GetRwxFullLengthError(rwxFull string) error {
     9  	if len(rwxFull) != RwxFullLength {
    10  		return errcore.LengthShouldBeEqualToType.
    11  			Error(
    12  				"rwxFull length should be "+RwxFullLengthString,
    13  				len(rwxFull))
    14  	}
    15  
    16  	return nil
    17  }