Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manyakrus/go_lines_count
Calculation of the number of lines and functions in golang repositories, in folders and subfolders, in termial or .csv or .txt files. (Count Lines Of Code)
https://github.com/manyakrus/go_lines_count
analyses automatic calculate counter functions golang line lines number repositories repositories-analysis repositories-stadistics source-code statistics utility
Last synced: about 2 months ago
JSON representation
Calculation of the number of lines and functions in golang repositories, in folders and subfolders, in termial or .csv or .txt files. (Count Lines Of Code)
- Host: GitHub
- URL: https://github.com/manyakrus/go_lines_count
- Owner: ManyakRus
- License: gpl-2.0
- Created: 2024-03-12T14:32:17.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-15T13:30:03.000Z (2 months ago)
- Last Synced: 2024-11-15T14:30:08.579Z (2 months ago)
- Topics: analyses, automatic, calculate, counter, functions, golang, line, lines, number, repositories, repositories-analysis, repositories-stadistics, source-code, statistics, utility
- Language: Go
- Homepage:
- Size: 1.34 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Calculation of the number of lines and functions in repositories,
for the golang programming language.The go_lines_count console utility is designed to calculate and display
number of lines and functions in repositories (directories),
to study the source code.
Displayed:
- names of directories and subdirectories
- number of functions and lines in the catalogA sample implementation can be found in the examples directory,
example:
```
21.06.2024:
Name Level Lines count Functions count
. 1 505817 18692
calendar 2 684 22
casebook_service 2 7510 47
contract_checker_service 2 831 13
copy 2 0 0
crud_generator 2 17206 588
debezium_adapter_postgres 2 11060 381
debtors_list 2 2407 35
go_lines_count 2 589 23
image_connections 2 1779 52
image_database 2 1836 45
image_packages 2 2379 72
monitor_service 2 2670 23
stack_exchange_postgres 2 16720 397
starter 2 11718 598
sync_service 2 427362 16362
telegram_loki 2 639 22
whatsapp_chatgpt 2 427 1213.11.2024:
Name Level Lines count Functions count
. 1 624509 22888
calendar 2 684 22
casebook_service 2 7546 48
contract_checker_service 2 902 15
copy 2 0 0
crud_generator 2 27128 776
ddl_from_protobuf 2 1557 47
debezium_adapter_postgres 2 11643 321
debtors_list 2 2456 36
go_lines_count 2 612 24
image_connections 2 1802 53
image_database 2 1864 46
image_packages 2 2402 73
monitor_service 2 2765 24
stack_exchange_postgres 2 18550 425
starter 2 14362 725
sync_service 2 528362 20198
telegram_loki 2 1449 43
whatsapp_chatgpt 2 425 12
```I wrote 610 thousand lines of code in 2 years,
including 510 thousand lines with a code generator, and 100 thousand lines of code manually.Installation procedure:
1. Compile this repository
>make build
>
the go_lines_count file will appear in the "bin" folder3. Run the go_lines_count file with the following parameters:
go_lines_count
startup example:
>./go_lines_count ./ ./lines_count.txt 2
>
(or fill out the file bin/settings.txt)4. After launch, a new filled file will be created or text will be displayed in the console.
```
Settings:
1. You can run it without any settings, there will be default settings.
2. DIRECTORY_SOURCE
the folder where the source code in golang is located,
Calculation will begin from this folder, taking into account subfolders.
3.FILENAME
- for empty - the result will be displayed on the terminal screen
- for .txt files - the result will be saved as a file with text formatting
- for .csv files - the result will be saved to a file according to the CSV standard (MS Excel)
4.FOLDERS_LEVEL
- number of how many nesting levels to display,
default =2
```
Source code in Golang language.
Tested on Linux Ubuntu
Readme from 03/14/2024License:
Save information about the author and site in this file.Author: Alexander Nikitin
https://github.com/ManyakRus/go_lines_count