code: func ValidateID(id string) error {
  	if ok := validHex.MatchString(id); !ok {
  		return fmt.Errorf("image ID %q is invalid", id)
  	}
  	return nil
  }
docs: // ValidateID checks whether an ID string is a valid image ID.