ruler

package
v0.0.0-...-169bdd1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

package ruler gathers relevant structures and interfaces for coding measurements. --

Copyright (C) 2020 by Rafael Santiago

Use of this source code is governed by GPL-v2 license that can be found in the COPYING file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeFileInfo

type CodeFileInfo struct {
	BytesTotal int64
}

type CodeStat

type CodeStat struct {
	sync.Mutex
	Files       map[string]CodeFileInfo
	CharPerLine int64
	CharPerPage int64
	ProjectName string
}

func (*CodeStat) CalibrateCourier10px

func (c *CodeStat) CalibrateCourier10px()

func (*CodeStat) CalibrateCourier12px

func (c *CodeStat) CalibrateCourier12px()

type CodingRuler

type CodingRuler interface {
	DistancePerLine() float64
	DistancePerPage() float64
	TotalDistance() float64
	DistancePerFile(filename string) float64
}

Jump to

Keyboard shortcuts

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