Skip to content

Commit 2f5110e

Browse files
committed
main: improves code comments
1 parent 99d90a5 commit 2f5110e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

main.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@ import (
1515
// main is the entry point of the application. It initializes the extractor,
1616
// fetches repository metrics from GitHub, and displays the results.
1717
func main() {
18-
// Load configuration
18+
// Load configuration.
1919
cfg := config.Config{}
2020

21-
// Create a new extractor instance
21+
// Create a new extractor instance.
2222
ex := extractor.New()
23-
24-
// Configure extraction parameters for the graphql-go/graphql repository
23+
24+
// Configure extraction parameters for the graphql-go/graphql repository.
2525
params := extractor.RunParams{
2626
HTTPClient: &http.Client{},
2727
Organization: "graphql-go",
2828
RepositoryName: "graphql",
2929
}
30-
31-
// Run the extractor to fetch repository metrics
30+
31+
// Run the extractor to fetch repository metrics.
3232
r, err := ex.Run(&params)
3333
if err != nil {
3434
log.Fatal(err)
3535
}
3636

37-
// Display debug information if enabled
37+
// Display debug information if enabled.
3838
fmt.Println(cfg.IsDebug)
39-
40-
// Display the extraction results
39+
40+
// Display the extraction results.
4141
fmt.Printf("%+v\n", r)
4242
}

0 commit comments

Comments
 (0)