summarize

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2016 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package summary prints a pretty summary of all targets and their destinations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

type Detector interface {
	Detect(path string) detect.Type
}

Detector detects a file's type.

type Resolver

type Resolver interface {
	List() []string
	Resolve(name string) (string, error)
}

Resolver lists all targets and resolves individual targets' destinations. Every target returned by List must be Resolvable without error.

type Summarizer

type Summarizer struct {
	Detector Detector
	Resolver Resolver
}

Summarizer returns a pretty string summarizing targets, their destinations, and the type of each destination.

func (Summarizer) Summary

func (s Summarizer) Summary() string

Summary retuns a the summary of all targets in the Resolver.

Jump to

Keyboard shortcuts

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