1+ // Package seu_ambiente_de_desenvolvimento provides functionalities to display and manage
2+ // information related to the development environment setup. It includes sections on
3+ // terminal usage, Go workspace and environment variables, IDEs, Go commands, GitHub
4+ // repositories, cross-compilation, and packages. The package offers functions to display
5+ // these sections, generate menu options, and provide help descriptions for each section.
16package seu_ambiente_de_desenvolvimento
27
38import (
@@ -6,8 +11,15 @@ import (
611 "github.com/fabianoflorentino/aprendago/pkg/format"
712)
813
9- var rootDir = "internal/seu_ambiente_de_desenvolvimento"
14+ // rootDir represents the root directory path for the development environment configuration files.
15+ const (
16+ rootDir = "internal/seu_ambiente_de_desenvolvimento"
17+ )
1018
19+ // SeuAmbienteDeDesenvolvimento prints the title of Chapter 19 and executes a series of sections
20+ // related to setting up and understanding your development environment in Go. The sections include
21+ // topics such as using the terminal, Go workspace and environment variables, IDEs, Go commands,
22+ // GitHub repositories, exploring GitHub, cross-compilation, and packages.
1123func SeuAmbienteDeDesenvolvimento () {
1224 fmt .Print ("\n \n Capítulo 19: Seu Ambiente de Desenvolvimento\n " )
1325
@@ -21,6 +33,12 @@ func SeuAmbienteDeDesenvolvimento() {
2133 executeSection ("Pacotes" )
2234}
2335
36+ // MenuSeuAmbienteDeDesenvolvimento returns a slice of format.MenuOptions,
37+ // each representing a different development environment topic with an associated
38+ // execution function. The options include topics such as terminal usage, Go workspace
39+ // and environment variables, IDEs, Go commands, GitHub repositories, exploring GitHub,
40+ // cross-compilation, and packages. Each option is linked to a function that executes
41+ // the corresponding section.
2442func MenuSeuAmbienteDeDesenvolvimento ([]string ) []format.MenuOptions {
2543 return []format.MenuOptions {
2644 {Options : "--o-terminal" , ExecFunc : func () { executeSection ("O terminal" ) }},
@@ -34,6 +52,10 @@ func MenuSeuAmbienteDeDesenvolvimento([]string) []format.MenuOptions {
3452 }
3553}
3654
55+ // HelpMeSeuAmbienteDeDesenvolvimento provides a list of help topics related to the development environment.
56+ // It includes information about the terminal, Go workspace environment variables, IDEs, Go commands,
57+ // GitHub repositories, exploring GitHub, cross-compilation, and packages.
58+ // The function prints the chapter title and then displays the help topics using the format.PrintHelpMe function.
3759func HelpMeSeuAmbienteDeDesenvolvimento () {
3860 hlp := []format.HelpMe {
3961 {Flag : "--o-terminal" , Description : "Exibe informações sobre o terminal." },
@@ -50,6 +72,10 @@ func HelpMeSeuAmbienteDeDesenvolvimento() {
5072 format .PrintHelpMe (hlp )
5173}
5274
75+ // executeSection formats and processes a given section of the project.
76+ // It takes a section name as a string parameter and uses the FormatSection
77+ // function from the format package to format the specified section within
78+ // the root directory.
5379func executeSection (section string ) {
5480 format .FormatSection (rootDir , section )
5581}
0 commit comments