Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCodeFiles = []*CodeFile{}
View Source
var AllCodeFilesLock sync.Mutex
A mutex to protect the AllCodeFiles.
View Source
var AllConfigFiles = []*ConfigFile{}
Functions ¶
This section is empty.
Types ¶
type CodeFile ¶
type CodeFile struct { // Cloc data CodeCount uint32 `json:"code"` CommentCount uint32 `json:"comment_count"` BlankCount uint32 `json:"blank_count"` TotalLines uint32 `json:"total_lines"` FileMetadata FileContent // Code language Language string `json:"language"` }
func (*CodeFile) AddFileContent ¶
type ConfigFile ¶
type ConfigFile struct { FileMetadata FileContent }
type FileContent ¶
type FileMetadata ¶
type FileMetadata struct { // File metadata LastModifiedAt uint64 `json:"last_modified_at"` FileType FileType `json:"file_type"` Name string `json:"name"` Path string `json:"path"` Directory string `json:"directory"` FileExtension string `json:"file_extension"` }
Struct memory alignment consideration
Click to show internal directories.
Click to hide internal directories.