{"version":3,"sources":["webpack:///./src/views/Chap5FirstGoApplication.vue?27bf","webpack:///src/views/Chap5FirstGoApplication.vue","webpack:///./src/views/Chap5FirstGoApplication.vue?e342","webpack:///./src/views/Chap5FirstGoApplication.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","directives","name","rawName","pre","staticRenderFns","components","FeedbackInvite","BuyCopyInvite","NewsletterInput","ChapterHeading","ChapterBibliography","TOCChapter","NavBar","BIconLink45deg","Footer","created","window","data","publicPath","metaInfo","title","htmlAttrs","lang","meta","charset","content","property","link","rel","href","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,UAAUA,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,QAAQ,CAACA,EAAG,aAAa,CAACG,MAAM,CAAC,aAAa,6BAA6BH,EAAG,SAASA,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,OAAO,GAAK,MAAM,CAACH,EAAG,iBAAiB,CAACG,MAAM,CAAC,gBAAgB,kCAAkC,aAAa,qBAAqB,YAAY,0BAA0BH,EAAG,MAAM,CAACE,YAAY,SAASC,MAAM,CAAC,GAAK,yCAAyCH,EAAG,KAAK,CAACG,MAAM,CAAC,cAAc,MAAM,CAACH,EAAG,OAAO,CAACE,YAAY,yBAAyB,CAACN,EAAIQ,GAAG,OAAOR,EAAIQ,GAAG,0CAA0CJ,EAAG,IAAI,CAACG,MAAM,CAAC,KAAO,yCAAyC,CAACH,EAAG,mBAAmB,CAACE,YAAY,oBAAoBC,MAAM,CAAC,aAAa,UAAU,KAAKH,EAAG,KAAK,CAACA,EAAG,KAAK,CAACA,EAAG,IAAI,CAACJ,EAAIQ,GAAG,sCAAsCJ,EAAG,KAAK,CAACA,EAAG,IAAI,CAACJ,EAAIQ,GAAG,2BAA2BJ,EAAG,MAA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B,gDACA,kEAEe,GACbH,KAAMA,0BACNI,WAAYA,CAAdC,sBAAAC,qBAAAC,uBAAAC,sBAAAC,2BAAAC,kBAAAC,cAAAC,sBAAAC,eAEEC,QAJF,WAKIC,OAAOA,SAASA,EAApBA,IACEC,KANF,WAMA,OAAAC,iBACEC,SAAUA,CACRC,MAAJA,EACIC,UAAJA,CACMC,KAANA,MAEIC,KAAJA,CACA,CAAMC,QAANA,SACA,CAAMvB,KAANA,cAAMwB,QAANA,GACA,CAAMxB,KAANA,SAAMwB,QAANA,iBACA,CAAMC,SAANA,YAAMD,QAANA,SACA,CAAMC,SAANA,UAAMD,QAANA,WACA,CAAMC,SAANA,WAAMD,QAANA,GACA,CAAMC,SAANA,iBAAMD,QAANA,GACA,CAAMC,SAANA,SAAMD,QAANA,sBACA,CAAMC,SAANA,eAAMD,QAANA,wBACA,CAAMC,SAANA,eAAMD,QAANA,uBACA,CAAMC,SAANA,kBAAMD,QAANA,mBAEIE,KAAJA,CACA,CAAMC,IAANA,YAAMC,KAANA,yBCxSiW,I,YCO7VC,EAAY,eACd,EACAxC,EACAc,GACA,EACA,KACA,WACA,MAIa,aAAA0B,E","file":"js/chunk-2d225630.7caf3521.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('NavBar'),_c('div',{staticClass:\"container-fluid\"},[_c('b-row',[_c('TOCChapter',{attrs:{\"chapter-id\":\"Chap5FirstGoApplication\"}}),_c('b-col'),_c('b-col',{attrs:{\"role\":\"main\",\"md\":\"6\"}},[_c('ChapterHeading',{attrs:{\"chapter-title\":\"Chapter 5: First Go Application\",\"image-name\":\"5-first-go-app.jpg\",\"image-alt\":\"First Go Application\"}}),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"what-will-you-learn-in-this-chapter\"}}),_c('h1',{attrs:{\"data-number\":\"1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"1\")]),_vm._v(\" What will you learn in this chapter? \"),_c('a',{attrs:{\"href\":\"#what-will-you-learn-in-this-chapter\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Write a simple program with Go\")])]),_c('li',[_c('p',[_vm._v(\"Compile a program\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"technical-concepts-covered\"}}),_c('h2',{attrs:{\"data-number\":\"1.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"1.1\")]),_vm._v(\" Technical concepts covered \"),_c('a',{attrs:{\"href\":\"#technical-concepts-covered\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Specifications\")])]),_c('li',[_c('p',[_vm._v(\"Compilation\")])]),_c('li',[_c('p',[_vm._v(\"A binary / an executable\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"introduction\"}}),_c('h1',{attrs:{\"data-number\":\"2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"2\")]),_vm._v(\" Introduction \"),_c('a',{attrs:{\"href\":\"#introduction\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"In this chapter, we will write our two first Go applications.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"application-specification\"}}),_c('h1',{attrs:{\"data-number\":\"3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"3\")]),_vm._v(\" Application specification \"),_c('a',{attrs:{\"href\":\"#application-specification\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Before writing any code, we need to decide what our application will do. Most projects begin with this phase. This is called the specification phase. It aims to produce precise requirements that the application should fulfill. Those requirements are the specifications (or the specs).\")]),_c('p',[_vm._v(\"Our application specification is simple: when launched, the application should display the date and time, and exit.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"project-directory\"}}),_c('BuyCopyInvite'),_c('h1',{attrs:{\"data-number\":\"4\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"4\")]),_vm._v(\" Project directory \"),_c('a',{attrs:{\"href\":\"#project-directory\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"A Go application is composed of files. On those files, we will write Go code. We call those file “\"),_c('strong',[_vm._v(\"source files\")]),_vm._v(\"”. An application is stored in the main directory. This main directory can contain just one source file. Most of the time, it’s composed of several sub-directories.\")]),_c('p',[_vm._v(\"We will create this main directory for our application. You can do it using the command line (or with the graphical interface of your system) :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ cd Documents/code\\n$ mkdir dateAndTime\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"ide\"}}),_c('h1',{attrs:{\"data-number\":\"5\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"5\")]),_vm._v(\" IDE \"),_c('a',{attrs:{\"href\":\"#ide\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"We are just minutes away from writing code. Do you need special software to write Go code? In theory, you can write code with a standard text editor. There is dedicated software on the market specially developed for developers. They are called IDE: Integrated Development Environment.\")]),_c('p',[_vm._v(\"IDE provides functionalities like :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Automatic coloration for reserved words (syntax highlighting)\")])]),_c('li',[_c('p',[_vm._v(\"Autocompletion\")])]),_c('li',[_c('p',[_vm._v(\"Refactoring capabilities\")])]),_c('li',[_c('p',[_vm._v(\"...\")])])]),_c('p',[_vm._v(\"They are many IDE on the market. You can search google to find the best fit for you. I use Goland, which IntelliJ develops. This software is not free (it’s subscription-based), but I find it easy to use.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"source-file\"}}),_c('h1',{attrs:{\"data-number\":\"6\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"6\")]),_vm._v(\" Source file \"),_c('a',{attrs:{\"href\":\"#source-file\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Let’s create our source file. We will name it \"),_c('strong',[_vm._v(\"main.go\")]),_vm._v(\".\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// first-go-application/first/main.go\\npackage main\\n\\nimport (\\n \\\"fmt\\\"\\n \\\"time\\\"\\n)\\n\\nfunc main() {\\n now := time.Now()\\n fmt.Println(now)\\n}\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"code-explanation\"}}),_c('h4',{attrs:{\"data-number\":\"6.0.0.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"6.0.0.1\")]),_vm._v(\" Code explanation \"),_c('a',{attrs:{\"href\":\"#code-explanation\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ul',[_c('li',[_c('p',[_vm._v(\"The first line is mandatory in Go. In all files, you must add the \"),_c('strong',[_vm._v(\"package\")]),_vm._v(\" declaration. Such declaration is composed of the keyword \"),_c('strong',[_vm._v(\"package\")]),_vm._v(\" then the name of the package.\")])]),_c('li',[_c('p',[_vm._v(\"On the second line, you can read another keyword: \"),_c('strong',[_vm._v(\"import.\")]),_vm._v(\" It is usually followed by an open parenthesis and a list of the program’s imported packages. Every package is written on a new line. Each package has a name delimited by double-quotes. Here our application depends on two packages :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"fmt\")])]),_c('li',[_c('p',[_vm._v(\"time\")])])])]),_c('li',[_c('p',[_vm._v(\"Those packages are part of the \"),_c('strong',[_vm._v(\"standard library.\")])])]),_c('li',[_c('p',[_vm._v(\"Then you find the declaration of a function named \"),_c('strong',[_vm._v(\"main\")]),_vm._v(\". We will go deeper into the syntax of functions later.\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"The function declaration is enclosed with curly brackets : \"),_c('strong',[_vm._v(\"{\")]),_vm._v(\" and \"),_c('strong',[_vm._v(\"}\")]),_vm._v(\".\")])]),_c('li',[_c('p',[_vm._v(\"Inside the function declaration, we have two statements :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"The first instruction is an affectation. We initialize the variable “\"),_c('strong',[_vm._v(\"now\")]),_vm._v(\"” and we give it the value returned by the function call \"),_c('strong',[_vm._v(\"Now()\")]),_vm._v(\"from the package \"),_c('strong',[_vm._v(\"time.\")])])]),_c('li',[_c('p',[_vm._v(\"The second instruction is a call of the function \"),_c('strong',[_vm._v(\"Print\")]),_vm._v(\" from the package \"),_c('strong',[_vm._v(\"fmt\")])])])])])])]),_c('li',[_c('p',[_vm._v(\"WARNING! be sure that you only use packages that you actually import. Otherwise your program will not compile... When you use a package not imported, your Go program will not compile\")])]),_c('li',[_c('p',[_vm._v(\"Make sure that you use imported packages. In the following code sample I import the package \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"fmt\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"time\")])]),_vm._v(\" but I do not use them in my \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"main\")])]),_vm._v(\" function :\")])])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// DO NOT COMPILE\\n// first-go-application/import-issue/main.go\\npackage main\\n\\nimport (\\n \\\"fmt\\\"\\n \\\"time\\\"\\n)\\n\\nfunc main(){\\n\\n}\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"about-the-main-function\"}}),_c('h4',{attrs:{\"data-number\":\"6.0.0.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"6.0.0.2\")]),_vm._v(\" About the main function \"),_c('a',{attrs:{\"href\":\"#about-the-main-function\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"The main function is the \"),_c('strong',[_c('u',[_vm._v(\"entry point\")])]),_vm._v(\" of the program. In every application, you have at least one main function. The program will start with the first statement of this function. (Note that in C, C++, Java, the main function’s concept exists).\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"compilation\"}}),_c('h1',{attrs:{\"data-number\":\"7\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"7\")]),_vm._v(\" Compilation \"),_c('a',{attrs:{\"href\":\"#compilation\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"The source file is ready to be transformed into a binary (or executable). To do so, we will use the Go toolchain. Open a terminal :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ cd Documents/code/dateAndTime\\n$ go build main.go\")])]),_c('p',[_vm._v(\"The first instruction (cd) instructs the shell to change the current directory to \"),_c('strong',[_vm._v(\"Documents/code/dateAndTime\")]),_vm._v(\". This command will compile the program into an executable. The executable is named main (the same name as the source file, without the .go extension). Let’s see the files that are now into our dateAndTime directory :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ ls -lh\\ntotal 4160\\n-rwxr-xr-x 1 maximilienandile staff 2.0M Aug 16 11:27 main\\n-rw-r--r-- 1 maximilienandile staff 94B Aug 16 11:00 main.go\")])]),_c('p',[_vm._v(\"We use the command \"),_c('strong',[_vm._v(\"ls\")]),_vm._v(\". (for windows user, you can use the command \"),_c('strong',[_vm._v(\"dir\")]),_vm._v(\"). You can see that we have two files :\")]),_c('ul',[_c('li',[_c('p',[_c('strong',[_vm._v(\"main\")]),_vm._v(\" that weights 2.0M (MegaBytes), and that is executable.\")])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"main.go\")]),_vm._v(\" that weights only 94 Bytes. (this is our source file).\")])])]),_c('p',[_vm._v(\"Now it’s time to launch our application :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ ./main\\n2019-08-16 11:45:44.435637 +0200 CEST m=+0.000263533\")])]),_c('p',[_vm._v(\"Congratulations on your first Go application!\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"test-yourself\"}}),_c('BuyCopyInvite'),_c('h1',{attrs:{\"data-number\":\"8\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"8\")]),_vm._v(\" Test yourself \"),_c('a',{attrs:{\"href\":\"#test-yourself\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"questions\"}}),_c('h2',{attrs:{\"data-number\":\"8.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"8.1\")]),_vm._v(\" Questions \"),_c('a',{attrs:{\"href\":\"#questions\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"How to compile a Go application?\")])]),_c('li',[_c('p',[_vm._v(\"How is the result of the compilation called?\")])]),_c('li',[_c('p',[_vm._v(\"What is the name of the entry point function of a Go application?\")])]),_c('li',[_c('p',[_vm._v(\"What is the usage of the import statement?\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"answers\"}}),_c('h2',{attrs:{\"data-number\":\"8.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"8.2\")]),_vm._v(\" Answers \"),_c('a',{attrs:{\"href\":\"#answers\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"How to compile a Go application?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"Open a terminal\")])]),_c('li',[_c('p',[_vm._v(\"Go to the directory of your application. Providing that there is a file named main.go that contains a main function issue those commands :\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"$ cd /code/myApp\")])]),_c('li',[_c('p',[_vm._v(\"$ go build main.go\")])])])])])]),_c('li',[_c('p',[_vm._v(\"How is the result of the compilation called?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_vm._v(\"It’s called an executable or binary\")])])]),_c('li',[_c('p',[_vm._v(\"What is the name of the entry point function of a Go application?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_vm._v(\"main\")])])]),_c('li',[_c('p',[_vm._v(\"What is the usage of the import statement?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"It’s used to import packages (from the standard library or other sources) into the program.\")])]),_c('li',[_c('p',[_vm._v(\"An imported package can then be used inside the code.\")])])])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"exercise\"}}),_c('h1',{attrs:{\"data-number\":\"9\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"9\")]),_vm._v(\" Exercise \"),_c('a',{attrs:{\"href\":\"#exercise\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"specifications\"}}),_c('h2',{attrs:{\"data-number\":\"9.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"9.1\")]),_vm._v(\" Specifications \"),_c('a',{attrs:{\"href\":\"#specifications\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"list\"},[_c('p',[_vm._v(\"Create a go application that displays the string “Hello World” on the screen and exit.\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"corrections\"}}),_c('h2',{attrs:{\"data-number\":\"9.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"9.2\")]),_vm._v(\" Corrections \"),_c('a',{attrs:{\"href\":\"#corrections\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"list\"}),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// first-go-application/hello-world/main.go\\npackage main\\n\\nimport \\\"fmt\\\"\\n\\nfunc main() {\\n fmt.Println(\\\"Hello World\\\")\\n}\")])]),_c('p',[_vm._v(\"Notes :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Here you can see that we use just one dependency. The import part of the program has changed; parenthesis is not required when importing only one package.\")])]),_c('li',[_c('p',[_vm._v(\"We have a main function. And a single statement inside.\")])]),_c('li',[_c('p',[_vm._v(\"Here the function Println is called. This function is part of the package fmt (fmt stands for “formatting”).\")])]),_c('li',[_c('p',[_vm._v(\"The package fmt is part of the standard library.\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"key-takeaways\"}}),_c('h1',{attrs:{\"data-number\":\"10\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10\")]),_vm._v(\" Key takeaways \"),_c('a',{attrs:{\"href\":\"#key-takeaways\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ul',[_c('li',[_c('p',[_vm._v(\"To create a simple program\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Create a file\")])]),_c('li',[_c('p',[_vm._v(\"Name it \"),_c('strong',[_vm._v(\"main.go\")])])]),_c('li',[_c('p',[_vm._v(\"Here is the basic skeleton of a program (that does nothing)\")])])])])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// first-go-application/skeleton/main.go\\npackage main\\n\\nfunc main() {\\n \\n}\")])]),_c('ul',[_c('li',[_c('p',[_vm._v(\"This file is denoted “source file”\")])]),_c('li',[_c('p',[_vm._v(\"From this source file, we can create an executable program (that can be launched).\")])]),_c('li',[_c('p',[_vm._v(\"The creation of the executable is called “compilation”.\")])]),_c('li',[_c('p',[_vm._v(\"To compile a program, type the following command into the terminal\")]),_c('ul',[_c('li',[_vm._v(\"go build main.go\")])])]),_c('li',[_c('p',[_vm._v(\"To launch the compiled program, type the following into your terminal :\")]),_c('ul',[_c('li',[_vm._v(\"./main\")])])])]),_c('h1',[_vm._v(\"Bibliography\")]),_c('ChapterBibliography',{attrs:{\"chapter-id\":\"Chap5FirstGoApplication\"}}),_c('b-row',{staticClass:\"ml-1 mr-1 \"},[_c('b-col',{staticClass:\"text-center border mr-1 p-2\"},[_c('router-link',{attrs:{\"to\":{name:'Chap4SetupYourDevEnvironment'}}},[_c('p',[_c('u',[_c('small',[_vm._v(\"Previous\")])])]),_c('p',[_c('small',[_vm._v(\"Setup your dev environment\")])])])],1),_c('b-col',{staticClass:\"text-center border p-1 \"},[_c('router-link',{attrs:{\"to\":{name:'Chap6BinaryAndDecimal'}}},[_c('p',[_c('u',[_c('small',[_vm._v(\"Next\")])])]),_c('p',[_c('small',[_vm._v(\"Binary and Decimal\")])])])],1)],1),_c('b-row',{staticClass:\"mt-1 ml-1 mr-1\"},[_c('b-col',{staticClass:\"text-center border p-1 \"},[_c('b-link',{attrs:{\"to\":{name:'Home'}}},[_vm._v(\"Table of contents\")])],1)],1),_c('FeedbackInvite'),_c('NewsletterInput'),_c('Footer')],1),_c('b-col')],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Chap5FirstGoApplication.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Chap5FirstGoApplication.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Chap5FirstGoApplication.vue?vue&type=template&id=e7544144&scoped=true&\"\nimport script from \"./Chap5FirstGoApplication.vue?vue&type=script&lang=js&\"\nexport * from \"./Chap5FirstGoApplication.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e7544144\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}