 package
    
    
    
      package
    
    
      
        
      
    
   
    
      
  
    
      
  
    
      Version: 
        v1.25.0
    
    
      Opens a new window with list of versions in this module.
    
    
    
  
      
  
    Published: Oct 29, 2025
  
      
  
    License: MIT
      
    
  
  
    Opens a new window with license information.
  
      
        
  
    
      Imports: 5
    
  
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by: 2
    
  
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
    
      
    
    
    
  
    
      
      
        
          
  
    
       Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    
      
        
 
  
  
  
  
  
  
  
      
  
  
    
    
    
      type Sitemap struct {
	XMLName   xml.Name
	Namespace string `xml:"xmlns,attr"`
	URLs     []URL `xml:"url"`
	Sitemaps []URL `xml:"sitemap"`
}
     
  Sitemap represents a sitemap
    
  
  
    
    
    
  NewSitemap creates a sitemap
  
   
    
  
  
    
    
    
  NewSitemapIndex creates a sitemap index.
  
   
    
  
  
    
    
    
  Add adds a URL to the sitemap
  
   
    
  
  
    
    
    
  WriteTo writes the sitemap to a response
  
   
  
     
      
  
  
    
    
    
      type URL struct {
	URL     string     `xml:"loc"`
	LastMod *time.Time `xml:"lastmod,omitempty"`
}
     
  URL represents a single sitemap entry
  
       
      
     
   
        
      
      
        
  
    
       Source Files
      ¶
      Source Files
      ¶
    
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.