urlinfo

command module
v0.0.0-...-cf7e68b Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

URLInfo

Go Program to get page information from URLs.

It can create a standard output (stdout) or Markdown report and also logs to a separate log file.

go get -u github.com/jpnewman/urlinfo

Install Dependencies

dep ensure

Build

go build

Print optimization decisions

go build -o ./urlinfo -gcflags -m *.go

Print more detailed optimization decisions

go build -o ./urlinfo -gcflags '-m -m' *.go 2> op_decisions.log

Test

TESTING.md

Code Coverage

COVERAGE.md

Benchmarking

BENCHMARKING.md

Run

./urlinfo -urlFile=./_TestData/urls.txt

Debug logging

LOG_LEVEL=Debug ./urlinfo -urlFile=./_TestData/urls.txt

Use only HTTP HEAD Method

./urlinfo -urlFile=./_TestData/urls.txt -getHeadOny

N.B. Modern dynamic websites will not return HTTP header ContentLength.

Generate Markdown Report

./urlinfo -urlFile=./_TestData/urls.txt -reportFormat=Markdown -reportFile=urlinfo.md

Dry-Run

In Dry-Run mode no HTTP request are made, But they are simulated by sleeping for -httpTimeout.

./urlinfo -urlFile=./_TestData/urls.txt -httpTimeout=1 -dryrun

Profiling

PROFILING.md

Tracing

TRACING.md

Debugging

DEBUGGING.md

Documentation

DOCUMENTATION.md

Editing

Visual Studio Code (VSCode), on Mac OS X, was used as an IDE.
This project contains VSCode build and debug configurations.

Documentation

Overview

Go Program to get page information from URLs.

Directories

Path Synopsis
Package profiling is a small package for profiling.
Package profiling is a small package for profiling.
Package report generates console and Markdown output.
Package report generates console and Markdown output.

Jump to

Keyboard shortcuts

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