info

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0, NCSA Imports: 6 Imported by: 1

Documentation

Overview

Package info provides utilities for summarizing the contents of a kzip.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KzipInfo

func KzipInfo(f kzip.File, fileSize int64, scanOpts ...kzip.ScanOption) (*apb.KzipInfo, error)

KzipInfo scans the kzip in f and counts contained files and units, giving a breakdown by corpus and language. It also records the size (in bytes) of the kzip specified by fileSize in the returned KzipInfo.

func KzipInfoTotalCount added in v0.0.32

func KzipInfoTotalCount(infos []*apb.KzipInfo) apb.KzipInfo_CorpusInfo

KzipInfoTotalCount returns the total CompilationUnits counts for infos split apart by language.

func MergeKzipInfo

func MergeKzipInfo(infos []*apb.KzipInfo) *apb.KzipInfo

MergeKzipInfo combines the counts from multiple KzipInfos.

Types

This section is empty.

Jump to

Keyboard shortcuts

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