json

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesResult

type FilesResult struct {
	Files file.GClocFiles        `json:"files"`
	Total language.GClocLanguage `json:"total"`
}

FilesResult defines the result of the analysis(by files) in JSON format.

func NewFilesResultFromGCloc

func NewFilesResultFromGCloc(total *language.Language, sortedFiles file.GClocFiles) FilesResult

NewFilesResultFromGCloc creates a new FilesResult from a file.GClocFiles.

type LanguagesResult

type LanguagesResult struct {
	Languages []language.GClocLanguage `json:"languages"`
	Total     language.GClocLanguage   `json:"total"`
}

LanguagesResult defines the result of the analysis in JSON format.

func NewLanguagesResultFromGCloc

func NewLanguagesResultFromGCloc(total *language.Language, sortedLanguages language.Languages) LanguagesResult

NewLanguagesResultFromGCloc creates a new LanguagesResult from a language.Languages.

Jump to

Keyboard shortcuts

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