func NewNamespace(modelUUID string) (Namespace, error) {
	if !names.IsValidModel(modelUUID) {
		return nil, errors.Errorf("model ID %q is not a valid model", modelUUID)
	}
	// The suffix is the last six hex digits of the model uuid.
	suffix := modelUUID[len(modelUUID)-uuidSuffixDigits:]

	return &namespace{name: suffix}, nil
}
// NewNamespace returns a Namespace identified by the last six hex digits of the
// model UUID. NewNamespace returns an error if the model tag is invalid.
NewNamespace returns a Namespace identified by the last six hex digits of the
model UUID. NewNamespace returns an error if the model tag is invalid.
// NewNamespace returns a Namespace identified by the last six hex digits of the // model UUID . NewNamespace returns an error if the model tag is invalid .
func NewNamespace(modelUUID string) (Namespace, error) {
	if !names.IsValidModel(modelUUID) {
		return nil, errors.Errorf("model ID %q is not a valid model", modelUUID)
	}
	suffix := modelUUID[len(modelUUID)-uuidSuffixDigits:]
	return &namespace{name: suffix}, nil
}
func NewNamespace ( modelUUID string ) ( Namespace , error ) { if ! names . IsValidModel ( modelUUID ) { return nil , errors . Errorf ( " " , modelUUID ) } suffix := modelUUID [ len ( modelUUID ) - uuidSuffixDigits : ] return & namespace { name : suffix } , nil }
NewNamespace returns a Namespace identified by the last six hex digits of the
model UUID.
NewNamespace returns a Namespace identified by the last six hex digits of the model UUID .
// The suffix is the last six hex digits of the model uuid.