Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/acs176/sitemap-builder

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/acs176/sitemap-builder

  • v0.0.1-0.20240329115902-75daa815d6cf
  • Source
  • Go
  • Socket score

Version published
Created
Source

Sitemap Builder

This project provides a tool for generating sitemaps for websites.

Table of Contents

  • Overview
  • Installation
  • Usage

Overview

The Sitemap Builder is a Go package designed to create sitemaps for websites. It crawls through the provided URL, extracts links, filters them based on the domain, and generates an XML sitemap containing all the visited links.

Installation

To use this package in your Go project, you can install it via:

go get github.com/Acs176/sitemap

Usage

Below is an example of how to use the Sitemap Builder:

package main

import (
    "fmt"
    "github.com/Acs176/sitemap"
)

func main() {
    builder := sitemap.New("https://example.com")
    xmlSitemap := builder.BuildSitemap()
    fmt.Println(string(xmlSitemap))
}

FAQs

Package last updated on 29 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc