![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/jarvisprestidge/sitemap
Simple command line program to crawl a single domain implemented in Go.
The program takes a single argument - a url with which to crawl.
Example:
$ sitemap http://golangweekly.com
and outputs the scraped URLs to a *.sitemap file in an output
directory created from where the command is ran.
If you have Go installed on your machine (with the correct GOPATH and GOROOT environment variables set) and the recommended Go workspace structure set up. Then it's as easy as cloning the repo, for example:
$ git clone https://github.com/jarvisprestidge/sitemap.git
Then cd
into the repo and now you have a couple of options to run the program.
Go Install
You can install the binary into your $GOPATH/bin
folder running the following in the root of the package:
$ go install
The sitemap
binary can then be found in the workspaces /bin
folder (or available anywhere if you've added this location to you path).
$ sitemap <url to scrape>
Go Run
To lauch the program ad-hoc and have the Go compiler build and run the binary in one step you can use the go run
option, for example:
$ go run sitemap.go <url to scrape>
The
sitemap
binary can then be found in the workspaces' bin folder (or available anywhere if you've added this location to your path).
Have a working version of docker running installed.
Clone the repo to a directory of your chosing and cd into that repo. Build the docker image from the dockerfile in the root of the repo using the following command in the terminal:
$ docker build -t <inset image name> .
From here, simply run the newly created image using the following:
$ docker run -it <name of image>
This will spin up the container and place you in a shell inside the go/github.com/jarvisprestidge/sitemap
directory. Then run the program with either of the options detailed above in How to run.
Ensure you have both the testing framework (Ginkgo) and the assertion library (Gomega) are installed by running the following:
$ go get github.com/onsi/ginkgo/ginkgo
$ go get github.com/onsi/gomega
Then when in the root directory of the package, execute the tests with either:
go test
or ginkgo
Running
ginkgo -v
will output the specs as well.
FAQs
Unknown package
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.