code: func IsValidContainer(container string) bool {
  	l := len(container)
  	if l < 3 || l > 63 {
  		return false
  	}
  
  	valid := false
  	prev := byte('-')
  	for i := 0; i < len(container); i++ {
  		c := container[i]
  		switch {
  		default:
  			return false
  		case 'a' <= c && c <= 'z':
  			valid = true
  		case '0' <= c && c <= '9':
  			// Is allowed, but containername can't be just numbers.
  			// Therefore, don't set valid to true
  		case c == '-':
  			if prev == '-' {
  				return false
  			}
  		}
  		prev = c
  	}
  
  	if prev == '-' {
  		return false
  	}
  	return valid
  }
docs: // IsValidContainer reports whether container is a valid container name, per Microsoft's naming restrictions.
  //
  // See http://msdn.microsoft.com/en-us/library/azure/dd135715.aspx