github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/uri/urn.go (about)

     1  /* For license and copyright information please see the LEGAL file in the code repository */
     2  
     3  package uri
     4  
     5  // URN implement protocol.URN interface
     6  type URN struct {
     7  	uri string
     8  	nid string
     9  	nss string
    10  }
    11  
    12  // SetDetail add error text details to existing error and return it.
    13  func (u *URN) Init(urn string) {
    14  	u.uri = urn
    15  	// TODO:::
    16  }
    17  
    18  func (u *URN) URI() string    { return u.uri }
    19  func (u *URN) Scheme() string { return "urn" }
    20  func (u *URN) NID() string    { return u.nid }
    21  func (u *URN) NSS() string    { return u.nss }