faviconhash

package module
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 10 Imported by: 0

README

faviconhash

GitHub license GitHub Release

Get the favicon hash for fun and profit. (poc version)

Installation:

GO111MODULE=on go get -v github.com/binaryfigments/faviconhash/cmd/faviconhash

Help:

$ faviconhash -h
Usage of faviconhash:
  -insecure
    	Allow insecure HTTPS requests (default true)
  -uri string
    	Set Request URI (default "https://example.nl/favicon.ico")
  -useragent string
    	Set User-Agent (default "Mozilla/5.0 (compatible; FaviconHash/0.1; +https://github.com/binaryfigments/faviconhash)")

Something with versioning

git status
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   README.md

no changes added to commit (use "git add" and/or "git commit -a")

git add . && git commit -m "initial version"
[main 09a83d2] initial version
 1 file changed, 2 insertions(+), 1 deletion(-)

git tag -a v1.0.0 -m "initial version"

git push origin main --tags  

Go releaser test.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(options *Options) (string, error)

Run function that gets the hash

Types

type Options

type Options struct {
	RequestURI string
	UserAgent  string
	Insecure   bool
}

Options struct for running options

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL