Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

RFC: New function for operating with core.Namespace #884

Closed
marcin-krolik opened this issue Apr 28, 2016 · 2 comments
Closed

RFC: New function for operating with core.Namespace #884

marcin-krolik opened this issue Apr 28, 2016 · 2 comments
Labels

Comments

@marcin-krolik
Copy link
Collaborator

When dealing with more then one static element following dynamic element one need to "spam" AddStaticElement(element string) function.
I propose to introduce new function to add possibility to add arbitrary number of static elements

func (n Namespace) AddStaticElements(values ...string) Namespace {
    for _, value := range values {
        n = append(n, NamespaceElement{Value: value})
    }
    return n
}
@marcin-krolik marcin-krolik changed the title New function for operating with core.Namespace RFC: New function for operating with core.Namespace Apr 28, 2016
@jcooklin
Copy link
Collaborator

👍

@tiffanyfay
Copy link
Contributor

Fixed by #885

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants