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

github.com/lockwarr/gositemapgenerator

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/lockwarr/gositemapgenerator

  • v0.0.0-20220628171839-13999d3292e1
  • Source
  • Go
  • Socket score

Version published
Created
Source

SitemapGenerator

Requirements

Go 1.17+

Running the cli tool

Options

  1. -parallel= number of parallel workers to navigate through site, default is 10
  2. -output-file=output file path, default is ../sitemap.xml
  3. -max-depth= max depth of url navigation recursion, default is 10

Required arguments

  1. A valid url in the form of https://google.com

Example commands

  1. Navigate inside sitemap-generator-cli and run:

    go run main.go https://google.com

    go run main.go -parallel=5 -max-depth=10 -output-file="../sitemap.xml" https://google.com

Testing

  1. Run all tests:

    make test

Linux

The code has been tested only on Ubuntu 18.04

Improvements && Notes

I used one external dependency for testing only.

Of course the program can be expanded in many ways as required, some examples:

We can add log levels (debug, info, error etc...)
We could set up Dockerfile
I don't think this cli tool requires component tests but they could be implemented.

FAQs

Package last updated on 28 Jun 2022

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