An open API service indexing awesome lists of open source software.

https://github.com/dpecos/golinks

Check links liveleness in text files
https://github.com/dpecos/golinks

hexa hugo jekyll markdown static-site-generator

Last synced: 3 months ago
JSON representation

Check links liveleness in text files

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/dpecos/golinks.svg)](https://travis-ci.org/dpecos/golinks)
[![Go Report Card](https://goreportcard.com/badge/github.com/dpecos/golinks)](https://goreportcard.com/report/github.com/dpecos/golinks)

# golinks

Check links liveleness in text files

Really useful for static site generators like jekyll, hugo or hexa, as a last minute check before publishing a website. Easy and fast.

# Installation

go get github.com/dpecos/golinks
go install github.com/dpecos/golinks

# Usage

$ golinks -h
Usage of golinks:
-domain string
Domain to use for relative links
-only-ko
Show only failed URLs
-path string
Path with MD files to check (default ".")
-workers int
Number of workers (default 10)

# Example

Cheking links from files in a directory

golinks -domain https://danielpecos.com

![Cheking links from files in a directory](screenshot_2.png)

Cheking links from a single file

golinks -path linux.md -domain https://danielpecos.com

![Cheking links from a single file](screenshot_1.png)

Cheking links from files in a directory but only show failed links

golinks -only-ko -domain https://danielpecos.com

![Cheking links from files in a directory but only show failed links](screenshot_3.png)

# Author

Daniel Pecos Martinez
* https://danielpecos.com
* https://github.com/dpecos
* https://twitter.com/danielpecos