{"version":3,"sources":["webpack:///./src/assets/images/data_subdirectory_contents.png","webpack:///./src/assets/images/csv_read_documentation.png","webpack:///./src/assets/images/go_package_discovery.png","webpack:///./src/assets/images/parse_function_doc.png","webpack:///./src/assets/images/errors_application_structure.png","webpack:///./src/assets/images/data-folder-application.png","webpack:///./src/assets/images/invoice_example.png","webpack:///./src/views/Chap23Errors.vue?1065","webpack:///src/views/Chap23Errors.vue","webpack:///./src/views/Chap23Errors.vue?c136","webpack:///./src/views/Chap23Errors.vue"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","directives","name","rawName","pre","staticStyle","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":"qGAAAA,EAAOC,QAAU,IAA0B,+C,uBCA3CD,EAAOC,QAAU,IAA0B,2C,uBCA3CD,EAAOC,QAAU,IAA0B,yC,qBCA3CD,EAAOC,QAAU,IAA0B,uC,uBCA3CD,EAAOC,QAAU,IAA0B,iD,qBCA3CD,EAAOC,QAAU,IAA0B,4C,qBCA3CD,EAAOC,QAAU,IAA0B,oC,yCCA3C,IAAIC,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,kBAAkBH,EAAG,SAASA,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,OAAO,GAAK,MAAM,CAACH,EAAG,iBAAiB,CAACG,MAAM,CAAC,gBAAgB,qBAAqB,aAAa,aAAa,YAAY,YAAYH,EAAG,MAAM,CAACE,YAAY,SAASC,MAAM,CAAC,GAAK,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2B,CAACF,EAAG,SAAS,CAACG,MAAM,CAAC,GAAK,CAACG,KAAK,UAAU,CAACV,EAAIQ,GAAG,wBAAwB,IAAI,GAAGJ,EAAG,kBAAkBA,EAAG,mBAAmBA,EAAG,WAAW,GAAGA,EAAG,UAAU,IAAI,IAAI,IAClg0HU,EAAkB,G,4GCw2CtB,kCACA,oHAEe,GACbJ,KAAMA,eACNK,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,CAAMxB,KAANA,cAAMyB,QAANA,GACA,CAAMzB,KAANA,SAAMyB,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,yBCt4CsV,I,YCOlVC,EAAY,eACd,EACAzC,EACAe,GACA,EACA,KACA,WACA,MAIa,aAAA0B,E","file":"js/chunk-6070ac14.a5ae1ced.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/data_subdirectory_contents.a6e54823.png\";","module.exports = __webpack_public_path__ + \"img/csv_read_documentation.70d0e630.png\";","module.exports = __webpack_public_path__ + \"img/go_package_discovery.63cc3a84.png\";","module.exports = __webpack_public_path__ + \"img/parse_function_doc.62ee9779.png\";","module.exports = __webpack_public_path__ + \"img/errors_application_structure.a820de8e.png\";","module.exports = __webpack_public_path__ + \"img/data-folder-application.01f7df84.png\";","module.exports = __webpack_public_path__ + \"img/invoice_example.86becaf5.png\";","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\":\"Chap23Errors\"}}),_c('b-col'),_c('b-col',{attrs:{\"role\":\"main\",\"md\":\"6\"}},[_c('ChapterHeading',{attrs:{\"chapter-title\":\"Chapter 23: Errors\",\"image-name\":\"errors.jpg\",\"image-alt\":\"Errors\"}}),_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(\"What are errors?\")])]),_c('li',[_c('p',[_vm._v(\"How to create an error?\")])]),_c('li',[_c('p',[_vm._v(\"How to handle errors?\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"technical-concepts-covered\"}}),_c('h1',{attrs:{\"data-number\":\"2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"2\")]),_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(\"Errors\")])]),_c('li',[_c('p',[_vm._v(\"The error interface\")])]),_c('li',[_c('p',[_vm._v(\"Sentinel errors\")])]),_c('li',[_c('p',[_vm._v(\"Opaque errors\")])]),_c('li',[_c('p',[_vm._v(\"Unwrapping errors\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"the-term-error-covers-four-different-concepts\"}}),_c('h1',{attrs:{\"data-number\":\"3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"3\")]),_vm._v(\" The term error covers four different concepts \"),_c('a',{attrs:{\"href\":\"#the-term-error-covers-four-different-concepts\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"The IEEE glossary \"),_c('b-link',{staticClass:\"citation\",attrs:{\"data-cites\":\"institute1990ieee\",\"href\":\"#institute1990ieee\"}},[_vm._v(\"[@institute1990ieee]\")]),_vm._v(\" lists four different meanings for the term “error” :\")],1),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"The difference between a computed/observed/measured value or condition and the true/specified/theoretically value or condition.\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_vm._v(\"Example: A program computes the distance between two objects. The program outputs 30m, but the actual distance is 28. The program has generated an error.\")])])]),_c('li',[_c('p',[_vm._v(\"An incorrect step or data definition into a program. Usually named a “\"),_c('strong',[_vm._v(\"fault\")]),_vm._v(\"”.\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_vm._v(\"Example: A function takes as input a string and should convert it to a float. The string is malformed; the function cannot perform the conversion.\")])])]),_c('li',[_c('p',[_vm._v(\"An incorrect result that deviated from the expected. Usually named a “\"),_c('strong',[_vm._v(\"failure\")]),_vm._v(\"”.\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"Example: A function has been designed to compute the total price for a specific booking. When the function is run, the price is 145.99$, but when the client computed it with a calculator, the result is 189$. The function result is erroneous.\")])]),_c('li',[_c('p',[_vm._v(\"This is close to the first definition\")])])])]),_c('li',[_c('p',[_vm._v(\"A human action that produces an incorrect result. Usually named a “\"),_c('strong',[_vm._v(\"mistake\")]),_vm._v(\"”.\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_vm._v(\"For example, a database admin is asked to insert a row in a production database. He eventually deletes the entire database. (ouch:)\")])])])]),_c('p',[_vm._v(\"As programmers, we will need to prepare our programs against potential \"),_c('strong',[_vm._v(\"faults\")]),_vm._v(\" and \"),_c('strong',[_vm._v(\"failures.\")]),_vm._v(\" We can also avoid \"),_c('strong',[_vm._v(\"mistakes\")]),_vm._v(\" by providing extended documentation of our programs.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"example-a-program-that-can-fail\"}}),_c('BuyCopyInvite'),_c('h1',{attrs:{\"data-number\":\"4\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"4\")]),_vm._v(\" Example: a program that can fail \"),_c('a',{attrs:{\"href\":\"#example-a-program-that-can-fail\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"context-storing-configuration\"}}),_c('h2',{attrs:{\"data-number\":\"4.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"4.1\")]),_vm._v(\" Context : storing configuration \"),_c('a',{attrs:{\"href\":\"#context-storing-configuration\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Our Hotel management software needs to have access to some configuration values: the name of the hotel, the VAT rate for the country, the username and password of its database system ...etc.\")]),_c('p',[_vm._v(\"One easy solution would be to write those configuration values directly into the program. It’s not impossible but not recommended; we cannot store a password into our program’s compiled binary, neither a VAT rate. We would need to recompile it if the password change or the vat rate change... In addition to that, it’s a security issue; the password will be written directly in the binary, making it readable.\")]),_c('p',[_vm._v(\"In this example, we will take this solution to load the file’s configuration. Let’s see how to implement it.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"implementation\"}}),_c('h2',{attrs:{\"data-number\":\"4.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"4.2\")]),_vm._v(\" Implementation \"),_c('a',{attrs:{\"href\":\"#implementation\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"The first file is, as usual, a go.mod (initialized with go mod init) :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"module \\\"maximilien-andile.com/errors/error-example\\\"\\n\\ngo 1.16\")])]),_c('p',[_vm._v(\"Then we have the package config :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/example-failure/config/main.go\\npackage config\\n\\nimport (\\n \\\"fmt\\\"\\n \\\"io/ioutil\\\"\\n)\\n\\nfunc load() []byte {\\n dat, err := ioutil.ReadFile(\\\"/tmp/myHotelApp/config.txt\\\")\\n fmt.Println(err)\\n return dat\\n}\\n\\nfunc Print() {\\n fmt.Println(string(load()))\\n}\")])]),_c('p',[_vm._v(\"We have an unexported function in this package: \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"load\")])]),_vm._v(\". It will read a file. It uses the function \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"ReadFile\")])]),_vm._v(\" from the package \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"ioutil\")])]),_vm._v(\". The file that we will load is identified by its path : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"\\\"/tmp/myHotelApp/config.txt\\\"\")])])]),_c('p',[_vm._v(\"This function is called by the exported function \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Print\")])]),_vm._v(\". Which will print the data loaded from the file.\")]),_c('p',[_vm._v(\"The main file will call \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"config.Print\")])]),_vm._v(\":\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/example-failure/main.go\\npackage main\\n\\nimport \\\"maximilien-andile.com/errors/error-example/config\\\"\\n\\nfunc main() {\\n config.Print()\\n}\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"build-and-run\"}}),_c('h2',{attrs:{\"data-number\":\"4.3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"4.3\")]),_vm._v(\" Build and run \"),_c('a',{attrs:{\"href\":\"#build-and-run\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ go build main.go\\n./main\\nopen /tmp/myHotelApp/config.txt: no such file or directory\")])]),_c('p',[_vm._v(\"Go is telling us that it cannot open the file because it does not exist. The displayed text is not in our program; it is contained in the variable err. The call to ioutil.ReadFile returns two results :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"dat, err := ioutil.ReadFile(\\\"/tmp/myHotelApp/config.txt\\\")\\nfmt.Println(err)\")])]),_c('p',[_vm._v(\"Let’s check the signature of ReadFile! To do that, we have two options :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"If you use an IDE, some can go to the function definition with a click.\")]),_c('ul',[_c('li',[_vm._v(\"Here is the function signature :\")])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"func ReadFile(filename string) ([]byte, error)\")])])]),_c('li',[_c('p',[_vm._v(\"If you do not use one, you can still go to the online documentation\")]),_c('ul',[_c('li',[_vm._v(\"Go to \"),_c('strong',[_vm._v(\"pkg.go.dev\")]),_vm._v(\" and type \"),_c('strong',[_vm._v(\"ioutil\")])])])])]),_c('figure',[_c('b-img',{staticClass:\"img-book\",attrs:{\"src\":require('@/assets/images/go_package_discovery.png'),\"alt\":\"pkg.go.dev is a website to view the documentation of go package[fig:pkg.go.dev-ioutil]\",\"fluid\":\"\",\"thumbnail\":\"\"}}),_c('figcaption',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"pkg.go.dev is a website to view the documentation of go package\"),_c('span',{attrs:{\"id\":\"fig:pkg.go.dev-ioutil\",\"label\":\"fig:pkg.go.dev-ioutil\"}},[_vm._v(\"[fig:pkg.go.dev-ioutil]\")])])],1),_c('p',[_vm._v(\"We note that the function returns two results :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"A slice of bytes\")])]),_c('li',[_c('p',[_vm._v(\"An error\")])])]),_c('p',[_vm._v(\"The function documentation detail how the function works :\")]),_c('blockquote',[_c('p',[_vm._v(\"“ReadFile reads the file named by filename and returns the contents. A successful call returns err == nil, not err == EOF. Because ReadFile reads the whole file, it does not treat an EOF from Read as an error to be reported.”\")])]),_c('ul',[_c('li',[_c('p',[_vm._v(\"The function will attempt to read the whole file.\")])]),_c('li',[_c('p',[_vm._v(\"We learn that in the case of success, the value of error is nil\")])]),_c('li',[_c('p',[_vm._v(\"When there is an error, the second result’s value is not nil.\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"fix-the-error\"}}),_c('h2',{attrs:{\"data-number\":\"4.4\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"4.4\")]),_vm._v(\" Fix the error \"),_c('a',{attrs:{\"href\":\"#fix-the-error\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Let’s create a file in the requested location to test our program’s behavior. To do that, we will create a file with the command line :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ mkdir /tmp/myHotelApp\\n$ echo \\\"hello\\\" > /tmp/myHotelApp/config.txt\")])]),_c('p',[_vm._v(\"The first command will create the directory \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"/tmp/myHotelApp\")])]),_vm._v(\". The second command will write \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"hello\")])]),_vm._v(\" to the file \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"/tmp/myHotelApp/config.tx\")])]),_vm._v(\" \"),_c('strong',[_vm._v(\".\")]),_vm._v(\"Note that we will delete the contents already in the file. (to append content use \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\">>\")])]),_vm._v(\" instead of \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\">\")])]),_vm._v(\").\")]),_c('p',[_vm._v(\"Let’s run a second time the program :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ ./main\\n\\nhello\")])]),_c('p',[_vm._v(\"This time the value of \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"err\")])]),_vm._v(\" printed is \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"\")])]),_vm._v(\". The program reads the file successfully! The content is printed on the screen.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"error-interface-as-result\"}}),_c('h1',{attrs:{\"data-number\":\"5\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"5\")]),_vm._v(\" Error interface as result \"),_c('a',{attrs:{\"href\":\"#error-interface-as-result\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Generally, Go functions and methods return two results :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"The result(s) of the function, what we expect the function to produce.\")])]),_c('li',[_c('p',[_vm._v(\"An element of type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"error\")])]),_vm._v(\".\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Ex: ioutil.ReadFile’s first result is a slice of bytes containing the file’s content. The second result is an error\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"func ReadFile(filename string) ([]byte, error)\")])])]),_c('li',[_c('p',[_vm._v(\"Ex : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"fmt.Println\")])]),_vm._v(\" returns the number of bytes written and an error\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"func Println(a ...interface{}) (n int, err error)\")])])])])])]),_c('p',[_vm._v(\"When the error is equal to \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"nil\")])]),_vm._v(\" then the function execution is considered to be successful. When the error is not nil, then \"),_c('strong',[_vm._v(\"something went wrong\")]),_vm._v(\" and we can discard the result.\")]),_c('p',[_vm._v(\"Some function/methods return just an element of type interface error :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"csvWriter := csv.NewWriter(csvFile)\\nerr = csvWriter.Write(invoiceData)\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"the-error-interface\"}}),_c('h4',{attrs:{\"data-number\":\"5.0.0.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"5.0.0.1\")]),_vm._v(\" The error interface \"),_c('a',{attrs:{\"href\":\"#the-error-interface\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Here is the error interface defined in the standard library\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"type error interface {\\n Error() string\\n}\")])]),_c('p',[_vm._v(\"All errors returned in the standard library will return this interface. When an error is printed \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Error\")])]),_vm._v(\" is executed.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"modification-of-the-load-function-signature\"}}),_c('h2',{attrs:{\"data-number\":\"5.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"5.1\")]),_vm._v(\" Modification of the Load function signature \"),_c('a',{attrs:{\"href\":\"#modification-of-the-load-function-signature\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Here is a new version of the function \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"load\")])]),_vm._v(\" :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/example-fix/config/main.go\\npackage config\\n\\nimport (\\n \\\"io/ioutil\\\"\\n)\\n\\nfunc Load() (string, error) {\\n data, err := ioutil.ReadFile(\\\"/tmp/myHotelApp/config.txt\\\")\\n if err != nil {\\n return \\\"\\\", err\\n }\\n return string(data), nil\\n}\")])]),_c('p',[_vm._v(\"What’s new?\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"The function is now \"),_c('strong',[_vm._v(\"exported\")]),_vm._v(\".\")])]),_c('li',[_c('p',[_vm._v(\"The result parameters have changed. We now return a \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"string\")])]),_vm._v(\" and an \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"error\")])]),_vm._v(\".\")])]),_c('li',[_c('p',[_vm._v(\"When we call \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"ioutil.ReadFile\")])]),_vm._v(\" we initialize two local variables : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"data\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"err\")])]),_vm._v(\" .\")])]),_c('li',[_c('p',[_vm._v(\"We then test the value or \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"err\")])]),_vm._v(\" against nil. Why ?\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Because the documentation of \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"ioutil.ReadFile\")])]),_vm._v(\" tell us that “A successful call returns err == nil”.\")])]),_c('li',[_c('p',[_vm._v(\"As a consequence, when \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"err\")])]),_vm._v(\" is not equal to nil; something went wrong.\")])]),_c('li',[_c('p',[_vm._v(\"We do not try to understand what went wrong. We just return two results: an empty string and the error.\")])]),_c('li',[_c('p',[_vm._v(\"The caller will need to \"),_c('strong',[_vm._v(\"handle the error\")]),_vm._v(\".\")])])])]),_c('li',[_c('p',[_vm._v(\"When there is no error, we return the data retrieved in the file and the value \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"nil\")])]),_vm._v(\".\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Why do we need to return \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"nil\")])]),_vm._v(\" (as second result) ?\")])]),_c('li',[_c('p',[_vm._v(\"Because the caller needs to know if an error happened. We signal it by valorizing the second result parameter to \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"nil\")])]),_vm._v(\".\")])])])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"the-function-caller-is-notified-when-an-error-occurred\"}}),_c('h2',{attrs:{\"data-number\":\"5.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"5.2\")]),_vm._v(\" The function caller is notified when an error occurred \"),_c('a',{attrs:{\"href\":\"#the-function-caller-is-notified-when-an-error-occurred\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/example-fix/main.go\\npackage main\\n\\nimport (\\n \\\"fmt\\\"\\n \\\"log\\\"\\n\\n \\\"maximilien-andile.com/errors/errorExampleFixed/config\\\"\\n)\\n\\nfunc main() {\\n confData, err := config.Load()\\n if err != nil {\\n log.Fatalf(\\\"Impossible to load application config because: %s\\\", err)\\n }\\n fmt.Println(confData)\\n}\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"code-description\"}}),_c('h3',{attrs:{\"data-number\":\"5.2.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"5.2.1\")]),_vm._v(\" Code description \"),_c('a',{attrs:{\"href\":\"#code-description\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"program-test\"}}),_c('h3',{attrs:{\"data-number\":\"5.2.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"5.2.2\")]),_vm._v(\" Program test \"),_c('a',{attrs:{\"href\":\"#program-test\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Let’s test this new version :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ go build main.go\\n$./main\\nhello\")])]),_c('p',[_vm._v(\"Let’s try to make it crash! To do that, we will delete the config file :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ rm /tmp/myHotelApp/config.txt\\n$ ./main\\n2020/03/07 18:13:21 Impossible to load application config because open /tmp/myHotelApp/config.txt: no such file or directory\")])]),_c('p',[_vm._v(\"Let’s check the exit code returned by our program :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ echo $?\\n1\")])]),_c('p',[_vm._v(\"The exit code is 1.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"about-exit-code\"}}),_c('h4',{attrs:{\"data-number\":\"5.2.2.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"5.2.2.1\")]),_vm._v(\" About exit code \"),_c('a',{attrs:{\"href\":\"#about-exit-code\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"In UNIX and Windows-based systems, programs return an \"),_c('strong',[_vm._v(\"exit code\")]),_vm._v(\" when they stop. This code is here to warn the person (or the machine) that launched the program if something went wrong or not. A program that returns a 0 as exit code is considered to have executed its task without any issues by convention. When a program returns another code other than 0, something went wrong.\")]),_c('p',[_vm._v(\"Some programs will return a specific exit code in case of specific errors. In their documentation, you will find a mapping between the code and their signification.\")]),_c('p',[_vm._v(\"In Go, we can force the os to exit with the following call :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"os.Exit(1)\")])]),_c('p',[_vm._v(\"You can change the value one by another integer from 0 to 125 to make your program portable to all systems.\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"os.Exit(120)\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"how-to-create-standalone-errors\"}}),_c('h1',{attrs:{\"data-number\":\"6\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"6\")]),_vm._v(\" How to create standalone errors? \"),_c('a',{attrs:{\"href\":\"#how-to-create-standalone-errors\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"You can use several met to create errors :\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"errors.new\"}}),_c('h2',{attrs:{\"data-number\":\"6.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"6.1\")]),_vm._v(\" errors.New \"),_c('a',{attrs:{\"href\":\"#errors.new\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"The \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"errors\")])]),_vm._v(\" package from the standard library propose an implementation of the error interface. It allows you to create an error in your application easily. Let’s take an example usage :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/example-fix-2/config/config.go\\npackage config\\n\\nimport (\\n \\\"errors\\\"\\n \\\"io/ioutil\\\"\\n)\\n\\nconst fileHeader = \\\"APPCONF\\\"\\n\\nfunc Load() (string, error) {\\n data, err := ioutil.ReadFile(\\\"/tmp/myHotelApp/config.txt\\\")\\n if err != nil {\\n return \\\"\\\", err\\n }\\n conf := string(data)\\n if conf[0:8] != fileHeader {\\n return \\\"\\\", errors.New(\\\"the config file do not begin by accepted header\\\")\\n }\\n return conf, nil\\n}\")])]),_c('p',[_vm._v(\"Here we add another test to our config loader. The file must begin with specific characters. We take the first seven characters (by slicing the conf variable: we take the character from index 0 included to index eight excluded).\")]),_c('p',[_vm._v(\"When the file does not begin by the value of the const \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"fileHeader\")])]),_vm._v(\". We return an empty string along with a new error built with the function \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"New\")])]),_vm._v(\" from the errors package. Let’s test our error\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ go run main.go\\n2020/03/06 19:14:07 Impossible to load application config because the config file does not begin by accepted header\\nexit status 1\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"fmt.errorf\"}}),_c('h2',{attrs:{\"data-number\":\"6.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"6.2\")]),_vm._v(\" fmt.Errorf \"),_c('a',{attrs:{\"href\":\"#fmt.errorf\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"The package fmt allows you to create errors with \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"fmt.Errorf\")])]),_vm._v(\". Here is an example :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"func Load() (string, error) {\\n //...\\n if conf[0:8] != fileHeader {\\n return \\\"\\\", fmt.Errorf(\\\"the config file do not begin by accepted header\\\")\\n }\\n //..\\n}\")])]),_c('p',[_vm._v(\"Internally fmt.Errorf will call \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"errors.New\")])]),_vm._v(\".!\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"sentinel-error\"}}),_c('h2',{attrs:{\"data-number\":\"6.3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"6.3\")]),_vm._v(\" Sentinel error \"),_c('a',{attrs:{\"href\":\"#sentinel-error\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Sentinel errors are common in the standard library. They are exported variables of type error. Functions and methods of the package will return them. Callers will be able to take actions if such an error is returned (see next section to see how to handle sentinel errors)\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/sentinel/config/config.go\\npackage config\\n\\nimport (\\n \\\"errors\\\"\\n \\\"io/ioutil\\\"\\n)\\n\\nvar ErrNoConfigFile = errors.New(\\\"no config file at the specified location: /tmp/myHotelApp/config.txt\\\")\\n\\nfunc Load() (string, error) {\\n data, err := ioutil.ReadFile(\\\"/tmp/myHotelApp/config.txt\\\")\\n if err != nil {\\n return \\\"\\\", ErrNoConfigFile\\n }\\n return string(data), nil\\n}\")])]),_c('p',[_vm._v(\"Here is an example in the package \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"rsa\")])]),_vm._v(\":\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"var ErrMessageTooLong = errors.New(\\\"crypto/rsa: message too long for RSA public key size\\\")\")])]),_c('p',[_vm._v(\"And in the package \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"io\")])]),_vm._v(\":\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"var ErrShortWrite = errors.New(\\\"short write\\\")\\nvar ErrShortBuffer = errors.New(\\\"short buffer\\\")\\nvar EOF = errors.New(\\\"EOF\\\")\\nvar ErrNoProgress = errors.New(\\\"multiple Read calls return no data or error\\\")\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"a-custom-type-that-implements-the-error-interface\"}}),_c('h2',{attrs:{\"data-number\":\"6.4\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"6.4\")]),_vm._v(\" A custom type that implements the error interface \"),_c('a',{attrs:{\"href\":\"#a-custom-type-that-implements-the-error-interface\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"type HeaderError struct {\\n FaultyHeader string\\n}\\n\\nfunc (e *HeaderError) Error() string {\\n return fmt.Sprintf(\\\"Bad header. Provided %s, expected : APPCONF\\\", e.FaultyHeader)\\n}\")])]),_c('p',[_vm._v(\"The type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"HeaderError\")])]),_vm._v(\" implements the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"error\")])]),_vm._v(\" interface. We can use it in our function :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"func Load() (string, error) {\\n //...\\n if conf[0:8] != fileHeader {\\n return \\\"\\\", &HeaderError{FaultyHeader:conf[0:8]}\\n }\\n //..\\n}\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"how-to-wrap-an-error-into-another-error\"}}),_c('h1',{attrs:{\"data-number\":\"7\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"7\")]),_vm._v(\" How to wrap an error into another error ? \"),_c('a',{attrs:{\"href\":\"#how-to-wrap-an-error-into-another-error\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"what-is-wrapping\"}}),_c('h2',{attrs:{\"data-number\":\"7.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"7.1\")]),_vm._v(\" What is wrapping? \"),_c('a',{attrs:{\"href\":\"#what-is-wrapping\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Function or methods may encounter an error due to another function call. Here is an example :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/wrapping/useCase/main.go \\n\\n\\nfunc transferFileContents(filename string) error {\\n contents, err := ioutil.ReadFile(filename)\\n if err != nil {\\n return err\\n }\\n err = ioutil.WriteFile(\\\"/tmp/filecontents\\\", contents, 0644)\\n if err != nil {\\n return err\\n }\\n return nil\\n}\")])]),_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"transferFileContents\")])]),_vm._v(\" makes two function calls: \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"ioutil.ReadFile\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"ioutil.WriteFile\")])]),_vm._v(\". Those two function return errors. When such an error occurs, the function return directly the errors returned by the ioutil package functions. When an error occurs, the caller will receive the error without additional context :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"open /tmp/myHotelApp/config.txt: no such file or directory\")])]),_c('p',[_vm._v(\"What we could do is wrap this error into a new error to add context to it :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"during the transfer of file context, something went wrong: open /tmp/myHotelApp/config.txt: no such file or directory\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"with-fmt.errorf\"}}),_c('h2',{attrs:{\"data-number\":\"7.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"7.2\")]),_vm._v(\" with fmt.Errorf \"),_c('a',{attrs:{\"href\":\"#with-fmt.errorf\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"To wrap the error, you can use the following syntax :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/wrapping/fmt/main.go\\npackage main\\n\\n// ...\\n\\nfunc transferFileContents(filename string) error {\\n contents, err := ioutil.ReadFile(filename)\\n if err != nil {\\n return fmt.Errorf(\\\"during file transfer impossible to open source file: %w\\\", err)\\n }\\n err = ioutil.WriteFile(\\\"/tmp/filecontents\\\", contents, 0644)\\n if err != nil {\\n return fmt.Errorf(\\\"during file transfer impossible to write source file: %w\\\", err)\\n }\\n return nil\\n}\")])]),_c('p',[_vm._v(\"To wrap the error into the new error, we use the verb \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"%w\")])]),_c('strong',[_vm._v(\".\")])]),_c('p',[_vm._v(\"Let’s create a simple application that uses this function :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/wrapping/fmt/main.go\\npackage main\\n\\nimport (\\n \\\"fmt\\\"\\n \\\"io/ioutil\\\"\\n \\\"log\\\"\\n)\\n\\nfunc main() {\\n err := transferFileContents(\\\"/my/imaginary/file\\\")\\n if err != nil {\\n log.Printf(\\\"error occured: %s\\\", err)\\n }\\n}\")])]),_c('p',[_vm._v(\"When an error is returned, the logged message is now :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"2020/03/22 19:09:13 error occurred: during file transfer impossible to open source file: open /my/imaginary/file: no such file or directory\")])]),_c('p',[_vm._v(\"Instead of :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"2020/03/22 19:10:18 error occured: open /my/imaginary/file: no such file or directory\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"with-a-custom-error-type-and-the-unwrap-method\"}}),_c('h2',{attrs:{\"data-number\":\"7.3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"7.3\")]),_vm._v(\" With a custom error type and the Unwrap method \"),_c('a',{attrs:{\"href\":\"#with-a-custom-error-type-and-the-unwrap-method\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"When you define a custom error type, you can implement the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Unwrap\")])]),_vm._v(\" method :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"type ReadingError struct {\\n IOError error\\n Filename string\\n}\\n\\nfunc (e *ReadingError) Error() string {\\n return fmt.Sprintf(\\\"an error occured while attempting to read the file %s\\\", e.Filename)\\n}\\n\\nfunc (e *ReadingError) Unwrap() error {\\n return e.IOError\\n}\")])]),_c('ul',[_c('li',[_vm._v(\"The \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Unwrap\")])]),_vm._v(\" method returns the underlying error\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"how-to-handle-errors\"}}),_c('BuyCopyInvite'),_c('h1',{attrs:{\"data-number\":\"8\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"8\")]),_vm._v(\" How to handle errors? \"),_c('a',{attrs:{\"href\":\"#how-to-handle-errors\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"do-not-ignore-them\"}}),_c('h2',{attrs:{\"data-number\":\"8.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"8.1\")]),_vm._v(\" Do not ignore them! \"),_c('a',{attrs:{\"href\":\"#do-not-ignore-them\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"You have the power to ignore errors. You should not use this power! If something went wrong, you should modify the program’s flow.\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// DON'T DO THAT\\nfunc main() {\\n transferFileContents(\\\"/my/imaginary/file\\\")\\n log.Println(\\\"tranfer done\\\")\\n}\\n\\nfunc transferFileContents(filename string) error {\\n //...\\n}\")])]),_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"transferFileContents\")])]),_vm._v(\" returns one error. In the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"main\")])]),_vm._v(\" function we simply ignore the error. When the transfer is a failure, we are still logging that the transfer was done!\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"option-1-treat-them-as-opaque\"}}),_c('h2',{attrs:{\"data-number\":\"8.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"8.2\")]),_vm._v(\" Option 1: treat them as opaque \"),_c('a',{attrs:{\"href\":\"#option-1-treat-them-as-opaque\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"In some Go programs, errors are treated as an opaque signal. The caller will not look into errors to get their cause. They will just test if \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"err\")])]),_vm._v(\" is not \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"nil\")])]),_vm._v(\" :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"func main() {\\n err := transferFileContents(\\\"/my/imaginary/file\\\")\\n if err != nil {\\n log.Fatalf(\\\"transfer impossible caused by: %s\\\", err)\\n }\\n log.Println(\\\"tranfer done\\\")\\n}\")])]),_c('p',[_vm._v(\"The user will be warned of the error.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"option-2-adapt-the-program-flow-depending-on-the-error\"}}),_c('h2',{attrs:{\"data-number\":\"8.3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"8.3\")]),_vm._v(\" Option 2: adapt the program flow depending on the error \"),_c('a',{attrs:{\"href\":\"#option-2-adapt-the-program-flow-depending-on-the-error\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"detect-a-sentinel-error-with-a-simple-comparison\"}}),_c('h3',{attrs:{\"data-number\":\"8.3.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"8.3.1\")]),_vm._v(\" Detect a sentinel error with a simple comparison \"),_c('a',{attrs:{\"href\":\"#detect-a-sentinel-error-with-a-simple-comparison\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"The caller can detect a sentinel error returned by a function. Here is a very common example: reading a CSV file. Here is the CSV file that we will read :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"John,Doe,256\\nDiffie,Lock,257\")])]),_c('p',[_vm._v(\"Each line represents a record. The values of a record are separated by commas (CSV means Comma Separated Values). Here is the code :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/handling/detect/sentinelIs/main.go\\npackage main\\n\\nimport (\\n \\\"encoding/csv\\\"\\n \\\"errors\\\"\\n \\\"fmt\\\"\\n \\\"io\\\"\\n \\\"log\\\"\\n \\\"os\\\"\\n)\\n\\nfunc main() {\\n file, err := os.Open(\\\"test.csv\\\")\\n defer file.Close()\\n if err != nil {\\n log.Printf(\\\"impossible to open file %s\\\", err)\\n return\\n }\\n\\n r := csv.NewReader(file)\\n for {\\n record, err := r.Read()\\n if errors.Is(err, io.EOF) {\\n break\\n }\\n if err != nil {\\n log.Fatal(err)\\n }\\n fmt.Println(record)\\n }\\n}\")])]),_c('p',[_vm._v(\"This script will read a CSV file and iterate through it. It uses the CSV Reader. The Reader has a method \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Read\")])]),_vm._v(\" that will read one row. To read all the data in the file, we added a for loop.\")]),_c('p',[_vm._v(\"Here is the documentation of the Read function :\")]),_c('figure',[_c('b-img',{staticClass:\"img-book\",attrs:{\"src\":require('@/assets/images/csv_read_documentation.png'),\"alt\":\"Documentation of Read function\",\"fluid\":\"\",\"thumbnail\":\"\"}}),_c('figcaption',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"Documentation of Read function\")])],1),_c('p',[_vm._v(\"When the end of the file is reached, Read will return \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"nil\")])]),_vm._v(\" and the sentinel error \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"io.EOF\")])]),_vm._v(\" . When \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"nil\")])]),_vm._v(\" is equal to \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"io.EOF\")])]),_vm._v(\" we stop the loop with \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"break\")])]),_vm._v(\" . That’s the reason why we check the value of err two times :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"if err == io.EOF {\\n break\\n}\\nif err != nil {\\n log.Printf(err)\\n return\\n}\")])]),_c('p',[_vm._v(\"In the first case, no more lines have to be read from the file; in the second case, something bad happens. In this case, we want our program to stop immediately, whereas in the second case, we just exit the loop!\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"detect-a-sentinel-error-with-errors.is\"}}),_c('h3',{attrs:{\"data-number\":\"8.3.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"8.3.2\")]),_vm._v(\" Detect a sentinel error with errors.Is \"),_c('a',{attrs:{\"href\":\"#detect-a-sentinel-error-with-errors.is\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"With the function Is from the errors package, you can detect if a specific error has occurred. Is will detect errors that have been wrapped! Here is the signature of the function :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"func Is(err, target error) bool\")])]),_c('p',[_vm._v(\"Two input parameters : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"err\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"target\")])]),_vm._v(\" of type interface \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"error\")])]),_vm._v(\". The \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"target\")])]),_vm._v(\" parameter is the error that you want to discover in the chain, \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"err\")])]),_vm._v(\" is your actual error. Here is an example usage :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"r := csv.NewReader(file)\\nfor {\\n record, err := r.Read()\\n // use Is instead of an equality comparison\\n if errors.Is(err, io.EOF) {\\n break\\n }\\n if err != nil {\\n log.Fatal(err)\\n }\\n fmt.Println(record)\\n}\")])]),_c('p',[_vm._v(\"In this snippet, we could have replaced \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"errors.Is(err, io.EOF)\")])]),_vm._v(\" by the equality comparison because \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"io.EOF\")])]),_vm._v(\" is directly returned by \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"r.Read()\")])]),_vm._v(\". The next example will demonstrate that the function \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Is\")])]),_vm._v(\" is capable of detecting sentinel errors in the error chain :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/handling/detect/sentinelIsChain/main.go\\npackage main\\n\\nimport (\\n \\\"errors\\\"\\n \\\"fmt\\\"\\n)\\n\\nfunc main() {\\n err := foo()\\n if errors.Is(err, errSentinel) {\\n fmt.Println(\\\"errSentinel detected in the error chain with errors.Is\\\")\\n }\\n if err == errSentinel {\\n fmt.Println(\\\"errSentinel detected in the error chain by ==\\\")\\n }\\n}\\n\\nvar errSentinel = errors.New(\\\"test\\\")\\n\\nfunc foo() error {\\n return fmt.Errorf(\\\"error : %w\\\", bar())\\n}\\n\\nfunc bar() error {\\n return errSentinel\\n}\")])]),_c('p',[_vm._v(\"Here is the execution result of this script :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"errSentinel detected in the error chain with errors.Is\")])]),_c('p',[_vm._v(\"In the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"main\")])]),_vm._v(\" function we call the function \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"foo\")])]),_vm._v(\" which will return an error that wraps the result of \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"bar\")])]),_vm._v(\". The function \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"bar\")])]),_vm._v(\" returns the sentinel error \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"errSentinel\")])]),_vm._v(\".\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"detect-an-error-type-with-errors.as\"}}),_c('h3',{attrs:{\"data-number\":\"8.3.3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"8.3.3\")]),_vm._v(\" Detect an error type with errors.As \"),_c('a',{attrs:{\"href\":\"#detect-an-error-type-with-errors.as\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"The function \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"errors.As\")])]),_vm._v(\" can be used to detect if an error of type X is returned in the error chain. Let’s see the signature of this function :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"func As(err error, target interface{}) bool\")])]),_c('p',[_vm._v(\"The function takes two arguments :\")]),_c('ul',[_c('li',[_vm._v(\"err which is of type interface \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"error\")])])])]),_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"target\")])]),_vm._v(\" which is of type empty interface. Note that this parameter\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"(A) cannot be nil\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"(B) must be a pointer\")])]),_c('li',[_c('p',[_vm._v(\"(C) must be an interface or implement the error interface\")])])])])]),_c('p',[_vm._v(\"Here is an example :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/handling/detect/type/main.go\\npackage main\\n\\nimport (\\n \\\"errors\\\"\\n \\\"fmt\\\"\\n \\\"io/ioutil\\\"\\n \\\"log\\\"\\n)\\n\\nfunc main() {\\n err := transferFileContents(\\\"/my/imaginary/file\\\")\\n var readingError *ReadingError\\n if errors.As(err, &readingError) {\\n log.Fatalf(\\\"error of reading occured: %s: %s\\\", readingError, readingError.Unwrap())\\n }\\n var writingError *WritingError\\n if errors.As(err, &writingError) {\\n log.Fatalf(\\\"error of writing occured: %s\\\", err)\\n }\\n log.Println(\\\"transfer done\\\")\\n}\")])]),_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"readingError\")])]),_vm._v(\" is a variable of type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"*ReadingError\")])]),_vm._v(\".\"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"*ReadingError\")])]),_vm._v(\" is a pointer type. It represents all pointers to variable of type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"ReadingError\")])]),_vm._v(\". We call \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"errors.As\")])]),_vm._v(\" with two arguments : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"err\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"&readingError\")])]),_vm._v(\". The operator \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"&\")])]),_vm._v(\" signal that we take the address of the variable \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"readingError\")])]),_vm._v(\". What if we give directly to \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"errors.As\")])]),_vm._v(\" the variable \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"readingError\")])]),_vm._v(\" ? Why not? Let’s detail why :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"What is the value of \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"readingError\")])]),_vm._v(\" right after its declaration?\")]),_c('ul',[_c('li',[_vm._v(\"It’s nil. It violates the rule (A).\")])])]),_c('li',[_c('p',[_vm._v(\"What is the type of \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"readingError\")])]),_vm._v(\" ?\")]),_c('ul',[_c('li',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"*ReadingError\")])])])])]),_c('li',[_c('p',[_vm._v(\"What is \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"&readingError\")])]),_vm._v(\" ?\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"It is a pointer to the value \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"readingError\")])]),_vm._v(\" which is nil.\")])]),_c('li',[_c('p',[_vm._v(\"It’s NOT a nil pointer. It points to a value that is nil, but the pointer himself is not nil\")])]),_c('li',[_c('p',[_vm._v(\"Therefore \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"&readingError\")])]),_vm._v(\" is not nil (A) and is a pointer (B).\")])])])]),_c('li',[_c('p',[_vm._v(\"Is \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"&readingError\")])]),_vm._v(\" an interface?\")]),_c('ul',[_c('li',[_vm._v(\"No\")])])]),_c('li',[_c('p',[_vm._v(\"Does \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"&readingError\")])]),_vm._v(\" implements the error interface?\")]),_c('ul',[_c('li',[_vm._v(\"Yes! Rule C is verified.\")])])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"bits-of-advice\"}}),_c('h1',{attrs:{\"data-number\":\"9\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"9\")]),_vm._v(\" Bits of Advice \"),_c('a',{attrs:{\"href\":\"#bits-of-advice\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Errors and problems are part of programming. Your program has to handle all errors that might happen. You must think about the worst. Ask yourself what could go wrong in that line? What techniques could employ an evil user to make your program fail?\")]),_c('table',[_c('caption',[_vm._v(\"Error Handling recommendations\")]),_c('thead',[_c('tr',{staticClass:\"header\"},[_c('th',{staticStyle:{\"text-align\":\"center\"}},[_vm._v(\"Advice\")])])]),_c('tbody',[_c('tr',{staticClass:\"odd\"},[_c('td',{staticStyle:{\"text-align\":\"center\"}},[_vm._v(\"Always add context to errors\")])]),_c('tr',{staticClass:\"even\"},[_c('td',{staticStyle:{\"text-align\":\"center\"}},[_vm._v(\"Never ignore errors\")])]),_c('tr',{staticClass:\"odd\"},[_c('td',{staticStyle:{\"text-align\":\"center\"}},[_vm._v(\"Use fatal errors carefully\")])]),_c('tr',{staticClass:\"even\"},[_c('td',{staticStyle:{\"text-align\":\"center\"}},[_vm._v(\"Create fault-tolerant programs\")])])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"add-context-to-errors\"}}),_c('h2',{attrs:{\"data-number\":\"9.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"9.1\")]),_vm._v(\" Add context to errors \"),_c('a',{attrs:{\"href\":\"#add-context-to-errors\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"When creating errors, you should give enough information to users (but also to the team that will operate maintenance on your application). Errors without context are harder to understand, and finding their origin in sources can be challenging.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"do-not-ignore-errors\"}}),_c('h2',{attrs:{\"data-number\":\"9.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"9.2\")]),_vm._v(\" Do not ignore errors \"),_c('a',{attrs:{\"href\":\"#do-not-ignore-errors\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"It’s maybe obvious, but still, many developers are making this mistake. Errors that arise should be handled :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"returned to the caller\")]),_c('ul',[_c('li',[_vm._v(\"or treated (your code implement some kind of auto-correction mechanism)\")])])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"use-fatal-carefully\"}}),_c('h2',{attrs:{\"data-number\":\"9.3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"9.3\")]),_vm._v(\" Use fatal carefully \"),_c('a',{attrs:{\"href\":\"#use-fatal-carefully\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"When you make a call to \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"log.Fatal\")])]),_vm._v(\" or \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"log.Fatalf\")])]),_vm._v(\" you are implicitly forcing your program to exit abruptly (with an \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"os.Exit(1)\")])]),_vm._v(\").“The program terminates immediately; deferred functions are not run.” (os/proc.go). Deferred functions are often used for cleaning logic (for instance closing file descriptors). Consequently, not running them might prevent the program from executing cleanup logic.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"create-fault-tolerant-programs\"}}),_c('h2',{attrs:{\"data-number\":\"9.4\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"9.4\")]),_vm._v(\" Create fault-tolerant programs \"),_c('a',{attrs:{\"href\":\"#create-fault-tolerant-programs\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"The term “fault-tolerance” is used a lot by hardware engineers. Most hardware components are designed to handle failures graciously and to recover from them. Software engineers should also build their programs to tolerate errors. A program should be able to serve its purpose despite failures (which can be \"),_c('strong',[_vm._v(\"transient\")]),_vm._v(\" or \"),_c('strong',[_vm._v(\"permanent\")]),_vm._v(\").\")]),_c('p',[_vm._v(\"What does it mean for go programmers, what techniques could we employ to improve our programs?\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"recover-from-errors\"}}),_c('h4',{attrs:{\"data-number\":\"9.4.0.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"9.4.0.1\")]),_vm._v(\" Recover from errors \"),_c('a',{attrs:{\"href\":\"#recover-from-errors\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"If an error occurs, examine it to determine if it’s \"),_c('strong',[_vm._v(\"recoverable\")]),_vm._v(\" or not.\")]),_c('p',[_vm._v(\"For instance, you are building a program that makes a call to a web service. During the execution of your program, the call failed. The source of failure is the network (your server has been disconnected from the internet). This error is recoverable, meaning that you can recover from the error because the network will become available again sometime.\")]),_c('p',[_vm._v(\"If the call to your web service successfully pass through the network but returned an HTTP 400 error (“Bad request”) the error is not recoverable. Obviously, you had made a mistake when you developed your web service client. An human intervention will be necessary to fix this.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"implement-a-fallback-option.\"}}),_c('h4',{attrs:{\"data-number\":\"9.4.0.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"9.4.0.2\")]),_vm._v(\" Implement a fallback option. \"),_c('a',{attrs:{\"href\":\"#implement-a-fallback-option.\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"A fallback option is “is a contingency option to be taken if the preferred choice is unavailable” (Wikipedia). In our program, for instance, the network call is not possible or has returned an error. We should think about options.\")]),_c('p',[_vm._v(\"Options will not be the same if the error is recoverable or not.\")]),_c('p',[_vm._v(\"If you experienced a network failure, instead of directly returning the error, you could implement a \"),_c('strong',[_vm._v(\"retry\")]),_vm._v(\" mechanism. You will retry to contact the web service a configurable number of times.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"application\"}}),_c('h1',{attrs:{\"data-number\":\"10\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10\")]),_vm._v(\" Application \"),_c('a',{attrs:{\"href\":\"#application\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"problem\"}}),_c('h2',{attrs:{\"data-number\":\"10.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10.1\")]),_vm._v(\" Problem \"),_c('a',{attrs:{\"href\":\"#problem\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"In an existing system, the invoices generated by a group of hotels are simple text files. Those files are stored into hard drives stored in the archive room. The new software will need to load all those invoices to operate.\")]),_c('p',[_vm._v(\"On figure \"),_c('a',{attrs:{\"href\":\"#fig:An-example-invoice-errors\",\"data-reference-type\":\"ref\",\"data-reference\":\"fig:An-example-invoice-errors\"}},[_vm._v(\"2\")]),_vm._v(\" you can see an example invoice.\")]),_c('figure',[_c('b-img',{staticClass:\"img-book\",attrs:{\"src\":require('@/assets/images/invoice_example.png'),\"alt\":\"An example invoice[fig:An-example-invoice-errors]\",\"fluid\":\"\",\"thumbnail\":\"\"}}),_c('figcaption',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"An example invoice\"),_c('span',{attrs:{\"id\":\"fig:An-example-invoice-errors\",\"label\":\"fig:An-example-invoice-errors\"}},[_vm._v(\"[fig:An-example-invoice-errors]\")])])],1),_c('p',[_vm._v(\"Your client said that :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Invoices are encoded using CSV.\")])]),_c('li',[_c('p',[_vm._v(\"Invoices have been emitted from July 2003 to July 2020\")])]),_c('li',[_c('p',[_vm._v(\"The amount of money is formated :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"in US dollars\")])]),_c('li',[_c('p',[_vm._v(\"all multiplied by 100.\")]),_c('ul',[_c('li',[_vm._v(\"ex: $13.54 will be 1354 in the file\")])])])])]),_c('li',[_c('p',[_vm._v(\"They are all stored in a directory.\")])]),_c('li',[_c('p',[_vm._v(\"In this directory, they are sub-directories.\")])]),_c('li',[_c('p',[_vm._v(\"Each subdirectory is dedicated to a month.\")])]),_c('li',[_c('p',[_vm._v(\"Each subdirectory is named following the same pattern :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Month-Year.\")])]),_c('li',[_c('p',[_vm._v(\"Ex: \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"October-2008\")])]),_vm._v(\".\")])])])])]),_c('p',[_vm._v(\"You are asked to build a program that will :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Read all invoices files\")])]),_c('li',[_c('p',[_vm._v(\"Compute :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"The total amount of VAT that the hotel collected\")])]),_c('li',[_c('p',[_vm._v(\"The total amount of money paid by customers (VAT Inc.)\")])]),_c('li',[_c('p',[_vm._v(\"The total amount of invoices VAT Excluded\")])]),_c('li',[_c('p',[_vm._v(\"Those amounts have to be given for each month\")])])])])]),_c('p',[_vm._v(\"The program has to be fault-tolerant. Maybe that some invoices are not that clean... To do this exercise, you can download the invoice folder. It’s located here :.\")]),_c('p',[_vm._v(\"The file to download is a zip. On figure \"),_c('a',{attrs:{\"href\":\"#fig:data-errors-folder\",\"data-reference-type\":\"ref\",\"data-reference\":\"fig:data-errors-folder\"}},[_vm._v(\"3\")]),_vm._v(\" you can see a screenshot that lists all subdirectories. On figure \"),_c('a',{attrs:{\"href\":\"#fig:Contents-of-one-subdir\",\"data-reference-type\":\"ref\",\"data-reference\":\"fig:Contents-of-one-subdir\"}},[_vm._v(\"4\")]),_vm._v(\" you can see the contents of one subdirectory.\")]),_c('figure',[_c('b-img',{staticClass:\"img-book\",attrs:{\"src\":require('@/assets/images/data-folder-application.png'),\"alt\":\"Screenshot of the folder containing the invoices. Each month is located in a directory[fig:data-errors-folder]\",\"fluid\":\"\",\"thumbnail\":\"\"}}),_c('figcaption',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"Screenshot of the folder containing the invoices. Each month is located in a directory\"),_c('span',{attrs:{\"id\":\"fig:data-errors-folder\",\"label\":\"fig:data-errors-folder\"}},[_vm._v(\"[fig:data-errors-folder]\")])])],1),_c('figure',[_c('b-img',{staticClass:\"img-book\",attrs:{\"src\":require('@/assets/images/data_subdirectory_contents.png'),\"alt\":\"Contents of the directory April-2015[fig:Contents-of-one-subdir]\",\"fluid\":\"\",\"thumbnail\":\"\"}}),_c('figcaption',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"Contents of the directory April-2015\"),_c('span',{attrs:{\"id\":\"fig:Contents-of-one-subdir\",\"label\":\"fig:Contents-of-one-subdir\"}},[_vm._v(\"[fig:Contents-of-one-subdir]\")])])],1),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"tips-recommendations\"}}),_c('h2',{attrs:{\"data-number\":\"10.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10.2\")]),_vm._v(\" Tips / Recommendations \"),_c('a',{attrs:{\"href\":\"#tips-recommendations\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ul',[_c('li',[_c('p',[_vm._v(\"You need to find a way to compute the three figures for each month between July 2003 to 2020.\")])]),_c('li',[_c('p',[_vm._v(\"Maybe a for loop can help.\")])]),_c('li',[_c('p',[_vm._v(\"There is a pattern in the name of directories; you can use that in your code...\")])]),_c('li',[_c('p',[_vm._v(\"You will need to use functions from the packages :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"fmt\")])]),_c('li',[_c('p',[_vm._v(\"github.com/Rhymond/go-money\")])]),_c('li',[_c('p',[_vm._v(\"log\")])]),_c('li',[_c('p',[_vm._v(\"os\")])]),_c('li',[_c('p',[_vm._v(\"time\")])]),_c('li',[_c('p',[_vm._v(\"“encoding/csv”\")])])])]),_c('li',[_c('p',[_vm._v(\"You are encouraged to use the external module \"),_c('strong',[_vm._v(\"github.com/Rhymond/go-money.\")])]),_c('ul',[_c('li',[_vm._v(\"With this module, you can handle the money computation\")])])]),_c('li',[_c('p',[_vm._v(\"Before coding the real implementation, you can write pseudocode (a description written in English of each step performed by your program\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"solution\"}}),_c('h2',{attrs:{\"data-number\":\"10.3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10.3\")]),_vm._v(\" Solution \"),_c('a',{attrs:{\"href\":\"#solution\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"idea\"}}),_c('h3',{attrs:{\"data-number\":\"10.3.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10.3.1\")]),_vm._v(\" Idea \"),_c('a',{attrs:{\"href\":\"#idea\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"We need to iterate through all directories. Each directory contains data specific to a month. We can predict their names. With the directory’s name, we can then open it and read all files contained in it.\")]),_c('p',[_vm._v(\"We need to parse its contents for each file and retrieve the vat and the total vat excluded. The grand total is simply (vat + vat Excluded). Hence it is not necessary to get it.\")]),_c('p',[_vm._v(\"After each month, we print the totals for the month, and then we need to reinitialize the counters!\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"pseudocode\"}}),_c('h3',{attrs:{\"data-number\":\"10.3.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10.3.2\")]),_vm._v(\" Pseudocode \"),_c('a',{attrs:{\"href\":\"#pseudocode\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ul',[_c('li',[_c('p',[_vm._v(\"For each month between \"),_c('u',[_vm._v(\"July 2007\")]),_vm._v(\" and \"),_c('u',[_vm._v(\"July 2020\")])]),_c('ul',[_c('li',[_c('p',[_c('strong',[_vm._v(\"totalVat\")]),_vm._v(\" = 0\")])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"totalVatExc\")]),_vm._v(\" = 0\")])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"folderName\")]),_vm._v(\" = month-year\")])]),_c('li',[_c('p',[_vm._v(\"open \"),_c('strong',[_vm._v(\"folderName\")])])]),_c('li',[_c('p',[_vm._v(\"k = 0\")])]),_c('li',[_c('p',[_vm._v(\"For each file in directory\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"k++\")])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"fileName\")]),_vm._v(\" = invoice-k\")])]),_c('li',[_c('p',[_vm._v(\"Open and read fileName\")])]),_c('li',[_c('p',[_vm._v(\"Parse contents\")])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"totalVat\")]),_vm._v(\" = \"),_c('strong',[_vm._v(\"totalVat\")]),_vm._v(\" + \"),_c('strong',[_vm._v(\"vat\")]),_vm._v(\" extracted from invoice\")])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"totalVatExc\")]),_vm._v(\" = \"),_c('strong',[_vm._v(\"totalVatExc\")]),_vm._v(\" + \"),_c('strong',[_vm._v(\"vatExc\")]),_vm._v(\" extracted from invoice\")])])])]),_c('li',[_c('p',[_vm._v(\"Print \"),_c('strong',[_vm._v(\"totalVat\")]),_vm._v(\" $ \"),_c('strong',[_vm._v(\"totalVatExc\")]),_vm._v(\" $ for month-year\")])])])])]),_c('p',[_c('strong',[_vm._v(\"Note\")]),_vm._v(\" : I strongly suggest you to stop here and try to implement the algorithm yourself.\")]),_c('p',[_vm._v(\"You might not be able to do it completely, and it’s OK! Just try! After, read carefully the detailed solution (which is \"),_c('strong',[_vm._v(\"not\")]),_vm._v(\" the only valid one).\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"implementation-1\"}}),_c('h3',{attrs:{\"data-number\":\"10.3.3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10.3.3\")]),_vm._v(\" Implementation \"),_c('a',{attrs:{\"href\":\"#implementation-1\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ul',[_c('li',[_vm._v(\"First, we create the project by creating a new directory and a go.mod file.\")])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"module maximilien-andile.com/errors/application\\n\\ngo 1.13\")])]),_c('p',[_vm._v(\"You can adapt the module path to your needs. You can create the go.mod file by hand or with the following command :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"go mod init maximilien-andile.com/errors/application\")])]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Then we create our directory structure (see figure \"),_c('a',{attrs:{\"href\":\"#fig:Directory-structure-errors-app\",\"data-reference-type\":\"ref\",\"data-reference\":\"fig:Directory-structure-errors-app\"}},[_vm._v(\"5\")]),_vm._v(\").\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"We create a cmd directory. It will contain all our main files. Each main file will be stored in a subdirectory.\")])]),_c('li',[_c('p',[_vm._v(\"For the moment, we have one application. We create one directory named “compute”.\")])]),_c('li',[_c('p',[_vm._v(\"Inside this directory, we create a blank file compute.go. (it will be our application file).\")])])])])]),_c('figure',[_c('b-img',{staticClass:\"img-book\",attrs:{\"src\":require('@/assets/images/errors_application_structure.png'),\"alt\":\"Directory structure[fig:Directory-structure-errors-app]\",\"fluid\":\"\",\"thumbnail\":\"\"}}),_c('figcaption',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"Directory structure\"),_c('span',{attrs:{\"id\":\"fig:Directory-structure-errors-app\",\"label\":\"fig:Directory-structure-errors-app\"}},[_vm._v(\"[fig:Directory-structure-errors-app]\")])])],1),_c('ul',[_c('li',[_vm._v(\"Next, we write the structure of the compute.go file :\")])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"package main\\n\\n\\nfunc main() {\\n\\n}\")])]),_c('p',[_vm._v(\"Compute.go source file belongs to package main. In this source file, we define a main function.\")]),_c('ul',[_c('li',[_vm._v(\"We need to iterate over time. To do that, we will use a for loop. The for loop will need a start date and an end date. Go has a standard package for time values: time!\")])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"package main\\n\\nimport \\\"time\\\"\\n\\nconst startDate = \\\"2003-07-01\\\"\\nconst endDate = \\\"2020-07-01\\\"\\n\\n\\n\\nfunc main() {\\n start, err := time.Parse(\\\"2006-01-02\\\", startDate)\\n if err != nil {\\n log.Fatalf(\\\"impossible to parse start date %s\\\", err)\\n }\\n end, err := time.Parse(\\\"2006-01-02\\\", endDate)\\n if err != nil {\\n log.Fatalf(\\\"impossible to parse end date %s\\\", err)\\n }\\n}\")])]),_c('p',[_vm._v(\"Here we use the function Parse from package time. Let’s take a look at its documentation on the figure \"),_c('a',{attrs:{\"href\":\"#fig:time.Parse-documentation\",\"data-reference-type\":\"ref\",\"data-reference\":\"fig:time.Parse-documentation\"}},[_vm._v(\"6\")]),_vm._v(\" (on https://pkg.go.dev/time)\")]),_c('figure',[_c('b-img',{staticClass:\"img-book\",attrs:{\"src\":require('@/assets/images/parse_function_doc.png'),\"alt\":\"time.Parse documentation[fig:time.Parse-documentation]\",\"fluid\":\"\",\"thumbnail\":\"\"}}),_c('figcaption',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"time.Parse documentation\"),_c('span',{attrs:{\"id\":\"fig:time.Parse-documentation\",\"label\":\"fig:time.Parse-documentation\"}},[_vm._v(\"[fig:time.Parse-documentation]\")])])],1),_c('p',[_vm._v(\"Parse will take two parameters, a layout and the string representing the time. Both are strings. The layout indicates to Go how the input time (second parameter) is formatted.\")]),_c('p',[_vm._v(\"The layout is not \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"YYYY-MM-DD\")])]),_vm._v(\" (some experienced programmers are more used to that kind of layout) but \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"2006-01-02\")])]),_vm._v(\". A reference in time: Mon Jan 2 15:04:05 -0700 MST 2006 is used to define a layout.\")]),_c('p',[_vm._v(\"In our example, we parse to time strings \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"\\\"2003-07-01\\\"\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"\\\"2020-07-01\\\"\")])]),_vm._v(\" which are stored into two constants. The layout here is \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"\\\"2006-01-02\\\"\")])]),_vm._v(\".\")]),_c('p',[_vm._v(\"Note that the parsing operation might fail that’s why \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"time.Parse\")])]),_vm._v(\" returns an error as second parameter. When an error occurs, we call \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"log.Fatalf\")])]),_vm._v(\". It will log to the standard output and do and exit the program.\")]),_c('p',[_vm._v(\"The function returns a value of type time.Time\")]),_c('ul',[_c('li',[_vm._v(\"Then we build our for loop :\")])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"for d := start; d.Unix() < end.Unix(); d = d.AddDate(0, 1, 0) {\\n\\n}\")])]),_c('ul',[_c('li',[_c('p',[_vm._v(\"This loop will iterate over each month from July 2003 to July 2020. Let’s detail how it is constructed :\")]),_c('ul',[_c('li',[_c('p',[_c('u',[_vm._v(\"Init statement\")]),_vm._v(\": we create the variable d. Its value is initialized with “start”.\")])]),_c('li',[_c('p',[_c('u',[_vm._v(\"Condition\")]),_vm._v(\" : we compare d and end. The comparison is made between UNIX epochs, the number of seconds since first January\")]),_c('ol',{attrs:{\"start\":\"1970\",\"type\":\"1\"}},[_c('li',[_vm._v(\"to get the unit epoch from a time.Time use the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Unix\")])]),_vm._v(\" method.\")])]),_c('ul',[_c('li',[_vm._v(\"As soon as the condition is not met, the loop is terminated (Go will not execute the post statement)\")])])]),_c('li',[_c('p',[_c('u',[_vm._v(\"Post statement\")]),_vm._v(\" : we call \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"d.AddDate(0, 1, 0)\")])]),_vm._v(\" which will add one month to d and return the new date. Thanks to the assignment, the value of d will be overridden by this new date.\")])])])]),_c('li',[_c('p',[_vm._v(\"The next step is to write the body of the for loop :\")])])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"const baseDirPath = \\\"/my/base/dir\\\"\\n\\nfor d := start; d.Unix() < end.Unix(); d = d.AddDate(0, 1, 0) {\\n\\n monthDirPath := fmt.Sprintf(\\\"%s/%s-%d\\\", baseDirPath, d.Month(), d.Year())\\n\\n dir, err := os.Open(monthDirPath)\\n if err != nil {\\n log.Fatalf(\\\"failed to open directory %s: %s\\\", monthDirPath, err)\\n }\\n\\n defer dir.Close()\\n\\n list, err := dir.Readdirnames(0)\\n if err != nil {\\n log.Fatalf(\\\"failed to read all files in directory %s: %s\\\", monthDirPath, err)\\n }\\n\\n // iterate over each filename in list\\n for _, name := range list {\\n\\n // TODO : read the file and extract data\\n }\\n}\")])]),_c('p',[_vm._v(\"Here is step by step what the algorithm does:\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"Initialize a local variable named \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"monthDirPath\")])]),_vm._v(\" with the path of the month directory. Note that \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"baseDirectory\")])]),_vm._v(\" is a constant. It is the full path of the data directory.\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_vm._v(\"For instance : d is equal to July 2019, then \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"dirPath\")])]),_vm._v(\" is equal to \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"/my/base/dir/July-2019\")])])])])]),_c('li',[_c('p',[_vm._v(\"Open the directory with \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"os.Open(monthDirPath)\")])]),_vm._v(\".\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"The function \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"os.Open\")])]),_vm._v(\" has two results :\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"A pointer to an \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"os.File\")])]),_vm._v(\" struct\")])]),_c('li',[_c('p',[_vm._v(\"An error\")])])])]),_c('li',[_c('p',[_vm._v(\"We handle the error by asserting that \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"err\")])]),_vm._v(\" is \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"nil\")])]),_vm._v(\". If \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"err\")])]),_vm._v(\" is not \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"nil\")])]),_vm._v(\" we call \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"log.Fatalf\")])])])])])]),_c('li',[_c('p',[_vm._v(\"Then we tell go to call \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"dir.Close\")])]),_vm._v(\" when (a) the surrounding function (ie. main) returns or (b) the corresponding goroutine panic.\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_vm._v(\"This is a deferred statement.\")])])]),_c('li',[_c('p',[_vm._v(\"Then the program will get the list of \"),_c('strong',[_vm._v(\"files\")]),_vm._v(\" (or \"),_c('strong',[_vm._v(\"directories\")]),_vm._v(\") in the base directory (thanks to the call to \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"dir.Readdirnames(0)\")])]),_vm._v(\")\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"Here is the documentation of the function : (n is the input parameter of the function) “If n <= 0, Readdirnames returns all the names from the directory in a single slice. In this case, if Readdirnames succeeds (reads all the way to the end of the directory), it returns the slice and a nil error. If it encounters an error before the directory end, Readdirnames returns the names read until that point and a non-nil error.”\")])]),_c('li',[_c('p',[_vm._v(\"By setting the input parameters to \"),_c('strong',[_vm._v(\"0\")]),_vm._v(\" we are assured of getting a slice of all file names in the directory. If an error occurs, we call \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"log.Fatalf\")])])])])])]),_c('li',[_c('p',[_vm._v(\"Then we will iterate over the slice of file names with a for loop \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"for _, name := range list\")])])]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"Here we use a range statement.\")])]),_c('li',[_c('p',[_vm._v(\"The range statement will assign at each loop a new value to the two variables\"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"_\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"name\")])])])]),_c('li',[_c('p',[_vm._v(\"The first variable is named \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"_\")])]),_vm._v(\" because we are not interested in it. It is the element index in the slice.\")])])])])]),_c('p',[_vm._v(\"Let’s detail what we will put inside this loop :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"for _, name := range list {\\n // construct dir path\\n filePath := fmt.Sprintf(\\\"%s/%s\\\", monthDirPath, name)\\n // extract data from dir\\n vatExc, vat, err := invoice.ReadFromFile(filePath)\\n if err != nil {\\n log.Fatalf(\\\"failed to parse invoice %s: %s\\\", filePath, err)\\n }\\n //...\\n}\")])]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"The \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"filePath\")])]),_vm._v(\" is generated thanks to \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"fmt.Sprintf\")])]),_vm._v(\".\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_vm._v(\"ex : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"\\\"/my/base/dir/April-2005/invoice-1\\\"\")])])])])]),_c('li',[_c('p',[_vm._v(\"Then we call the method \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"ReadFromFile\")])]),_vm._v(\" from the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"invoice\")])]),_vm._v(\" package. The handling of the invoice is complicated; we have put all the logic inside an \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"invoice\")])]),_vm._v(\" package. (to make the code easier to understand)\")])])]),_c('p',[_vm._v(\"Let’s see the invoice package :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"package invoice\\n\\n//...\\n\\nfunc readCSV(filename string) ([]string, error) {\\n invoiceCSV, err := os.Open(filename)\\n defer invoiceCSV.Close()\\n if err != nil {\\n return nil, err\\n }\\n reader := csv.NewReader(invoiceCSV)\\n record, err := reader.Read()\\n if err == io.EOF {\\n return nil, errors.New(\\\"file is empty\\\")\\n }\\n if err != nil {\\n return nil, err\\n }\\n return record, nil\\n}\")])]),_c('p',[_vm._v(\"The first function that we will dissect is \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"readCSV\")])]),_vm._v(\". This function returns a slice of strings (which represent data contained in a CSV file) and an error. Note that this function is unexported.\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"The file is opened with \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"os.Open\")])])])]),_c('li',[_c('p',[_vm._v(\"We do not forget the deferred call to \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Close\")])]),_vm._v(\" (method defined on \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"invoiceCSV\")])]),_vm._v(\")\")])]),_c('li',[_c('p',[_vm._v(\"Then we will read the CSV file.\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"The first step is to create a CSV Reader : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"csv.NewReader(invoiceCSV)\")])])])]),_c('li',[_c('p',[_vm._v(\"Here is the signature of \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"NewReader\")])]),_vm._v(\" : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"func NewReader(r io.Reader) *Reader\")])])])]),_c('li',[_c('p',[_vm._v(\"It takes an interface \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"io.Reader\")])]),_vm._v(\" as input. (The first result of \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"os.Open\")])]),_vm._v(\" is an \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"io.Reader\")])]),_vm._v(\" (it implements the necessary methods))\")])]),_c('li',[_c('p',[_vm._v(\"The reader has a method \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Read\")])]),_vm._v(\" . From the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"csv\")])]),_vm._v(\" package documentation it will read the first CSV record.\")])]),_c('li',[_c('p',[_vm._v(\"Read returns an error that can cover two cases\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"When the reader has no data left to read. In this case \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"err\")])]),_vm._v(\" is equal to \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"io.EOF\")])])])]),_c('li',[_c('p',[_vm._v(\"When something went wrong during the read.\")])])])]),_c('li',[_c('p',[_vm._v(\"In our error handling, we distinguish the two cases to add information for the function caller.\")])])])]),_c('li',[_c('p',[_vm._v(\"When no error is encountered, the variable \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"record\")])]),_vm._v(\" is returned along with the value \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"nil\")])]),_vm._v(\". Hence, the caller knows that everything went perfectly.\")])])]),_c('p',[_vm._v(\"Here is the only exported function of the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"invoice\")])]),_vm._v(\" package :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"package invoice\\n\\nimport (\\n \\\"encoding/csv\\\"\\n \\\"errors\\\"\\n \\\"io\\\"\\n \\\"os\\\"\\n \\\"strconv\\\"\\n\\n \\\"github.com/Rhymond/go-money\\\"\\n)\\n\\nfunc ReadFromFile(filename string) (*money.Money, *money.Money, error) {\\n record, err := readCSV(filename)\\n if err != nil {\\n return nil, nil, err\\n }\\n // record: invoice number [0326582789 Unicornquiver 126730 25346 152076 5]\\n vatExcConverted, err := strconv.Atoi(record[2])\\n if err != nil {\\n return nil, nil, err\\n }\\n vatExc := money.New(int64(vatExcConverted), \\\"USD\\\")\\n vatConverted, err := strconv.Atoi(record[3])\\n if err != nil {\\n return nil, nil, err\\n }\\n vat := money.New(int64(vatConverted), \\\"USD\\\")\\n return vatExc, vat, nil\\n}\")])]),_c('p',[_vm._v(\"Take a look at the import statement. We use the money module. The path of this module is \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"github.com/Rhymond/go-money\")])]),_vm._v(\". The code is available freely on Github https://github.com/Rhymond/go-money. The author (Rhymond) published it under the MIT license\"),_c('a',{staticClass:\"footnote-ref\",attrs:{\"href\":\"#fn1\",\"id\":\"fnref1\",\"role\":\"doc-noteref\"}},[_c('sup',[_vm._v(\"1\")])]),_vm._v(\".\")]),_c('p',[_vm._v(\"This module will allow you to manipulate money amounts.\")]),_c('p',[_vm._v(\"To use it in our project, we need to tell Go to get a copy of the code locally :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"$ go get github.com/Rhymond/go-money\")])]),_c('p',[_vm._v(\"It will :\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"download the module code\")])]),_c('li',[_c('p',[_vm._v(\"modify the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"go.mod\")])]),_vm._v(\" (and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"go.sum\")])]),_vm._v(\") file to add the dependency :\")])])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"module maximilien-andile.com/errors/application\\n\\ngo 1.13\\n\\nrequire (\\n github.com/Rhymond/go-money v1.0.1\\n)\")])]),_c('ul',[_c('li',[_c('p',[_vm._v(\"The function takes a single parameter: a filename.\")])]),_c('li',[_c('p',[_vm._v(\"It returns 3 results : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"*money.Money, *money.Money, error\")])])])])]),_c('p',[_vm._v(\"Let’s zoom now on the exported \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"ReadFromFile\")])]),_vm._v(\" function. The objective of this function is to parse an invoice to return two values : (1) the VAT excluded amount and the (2) vat amount.\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"The first action here is to call the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"readCSV\")])]),_vm._v(\" function : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"record, err := readCSV(filename)\")])]),_vm._v(\". Note that, as always, the error value (err) is controlled.\")])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"(A)\")]),_vm._v(\" Let’s explain the instruction : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"vatExcConverted, err := strconv.Atoi(record[2])\")])])]),_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"record[2]\")])]),_vm._v(\" will extract from the record slice the value at index 2 (third position, remember that indexes of slices begin at 0)\")]),_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"record[2]\")])]),_vm._v(\" is of type string (remember that \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"record\")])]),_vm._v(\" is of type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"[]string\")])]),_vm._v(\")\")]),_c('ul',[_c('li',[_vm._v(\"We want to convert it to an \"),_c('strong',[_vm._v(\"integer\")]),_vm._v(\" (to use the money library). To do that, we use \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"strconv.Atoi\")])])])]),_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"vatExcConverted\")])]),_vm._v(\" will be of type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"int\")])]),_vm._v(\".\")])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"(B)\")]),_vm._v(\" Then we create a pointer to a new \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"money.Money\")])]),_vm._v(\" struct. To do so, we use the statement : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"vatExc := money.New(int64(vatExcConverted), \\\"USD\\\")\")])]),_vm._v(\". It will create an amount of money (in dollar) from the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"vatExcConverted\")])]),_vm._v(\" value.\")])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"Important\")]),_vm._v(\" : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"money.Newt\")])]),_vm._v(\" expects an int64; that’s why we convert it. Another important point amounts of money are treated it as integer, meanings they are multiplied by 100. $15.26 has to be multiplied by 100 (=1526) to be injected into \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"money.New\")])]),_vm._v(\". We do not need to do the conversion because the amounts are already multiplied by 100 in our dataset.\")])]),_c('li',[_c('p',[_vm._v(\"We repeat \"),_c('strong',[_vm._v(\"(A)\")]),_vm._v(\" and \"),_c('strong',[_vm._v(\"(B)\")]),_vm._v(\" to get the vat amount.\")])]),_c('li',[_c('p',[_vm._v(\"The two amounts are returned. Note that we return \"),_c('strong',[_vm._v(\"pointers\")]),_vm._v(\".\")])])]),_c('p',[_vm._v(\"We are done with the invoice package. Here is the complete code :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/application/solution/invoice/invoice.go\\npackage invoice\\n\\nimport (\\n \\\"encoding/csv\\\"\\n \\\"errors\\\"\\n \\\"io\\\"\\n \\\"os\\\"\\n \\\"strconv\\\"\\n\\n \\\"github.com/Rhymond/go-money\\\"\\n)\\n\\n// ReadFromFile will open the file specified in parameter\\n// it will parse the csv data contained inside\\n// Example file content : 2360520710,Winghickory,72224,14445,86669,8\\n// The column 2 and 3 will be interpreted as dollar amount multiplied by 100\\nfunc ReadFromFile(filename string) (*money.Money, *money.Money, error) {\\n record, err := readCSV(filename)\\n if err != nil {\\n return nil, nil, err\\n }\\n // record: invoice number [0326582789 Unicornquiver 126730 25346 152076 5]\\n vatExcConverted, err := strconv.Atoi(record[2])\\n if err != nil {\\n return nil, nil, err\\n }\\n vatExc := money.New(int64(vatExcConverted), \\\"USD\\\")\\n vatConverted, err := strconv.Atoi(record[3])\\n if err != nil {\\n return nil, nil, err\\n }\\n vat := money.New(int64(vatConverted), \\\"USD\\\")\\n return vatExc, vat, nil\\n}\\n\\nfunc readCSV(filename string) ([]string, error) {\\n invoiceCSV, err := os.Open(filename)\\n defer invoiceCSV.Close()\\n if err != nil {\\n return nil, err\\n }\\n reader := csv.NewReader(invoiceCSV)\\n record, err := reader.Read()\\n if err == io.EOF {\\n return nil, errors.New(\\\"file is empty\\\")\\n }\\n if err != nil {\\n return nil, err\\n }\\n return record, nil\\n}\")])]),_c('p',[_vm._v(\"And here is the complete code for the main package :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/application/solution/cmd/compute/compute.go\\npackage main\\n\\nimport (\\n \\\"fmt\\\"\\n \\\"log\\\"\\n \\\"os\\\"\\n \\\"time\\\"\\n\\n \\\"github.com/Rhymond/go-money\\\"\\n \\\"maximilien-andile.com/errors/application/invoice\\\"\\n)\\n\\nconst startDate = \\\"2003-07-01\\\"\\nconst endDate = \\\"2020-07-01\\\"\\nconst baseDirPath = \\\"/Users/maximilienandile/Documents/DEV/goBook/errors/application/data\\\"\\n\\nvar totalVat *money.Money\\nvar totalVatExc *money.Money\\n\\nfunc init() {\\n totalVat = money.New(0, \\\"USD\\\")\\n totalVatExc = money.New(0, \\\"USD\\\")\\n}\\n\\nfunc main() {\\n start, err := time.Parse(\\\"2006-01-02\\\", startDate)\\n if err != nil {\\n log.Fatalf(\\\"impossible to parse start date %s\\\", err)\\n }\\n end, err := time.Parse(\\\"2006-01-02\\\", endDate)\\n if err != nil {\\n log.Fatalf(\\\"impossible to parse end date %s\\\", err)\\n }\\n // from start to end date add 1 month at each iteration\\n for d := start; d.Unix() < end.Unix(); d = d.AddDate(0, 1, 0) {\\n // create a var that will contain the name of the dir to open\\n monthDirPath := fmt.Sprintf(\\\"%s/%s-%d\\\", baseDirPath, d.Month(), d.Year())\\n // open the directory\\n dir, err := os.Open(monthDirPath)\\n if err != nil {\\n log.Fatalf(\\\"failed to open directory %s: %s\\\", monthDirPath, err)\\n }\\n // defer the closing of the dir\\n defer dir.Close()\\n // read all files and folder into the dir\\n list, err := dir.Readdirnames(0)\\n if err != nil {\\n log.Fatalf(\\\"failed to read all files in directory %s: %s\\\", monthDirPath, err)\\n }\\n // iterate for each filename in list\\n for _, name := range list {\\n // construct dir path\\n filePath := fmt.Sprintf(\\\"%s/%s\\\", monthDirPath, name)\\n // extract data from dir\\n vatExc, vat, err := invoice.ReadFromFile(filePath)\\n if err != nil {\\n log.Fatalf(\\\"failed to parse invoice %s: %s\\\", filePath, err)\\n }\\n totalVat, err = totalVat.Add(vat)\\n if err != nil {\\n log.Fatalf(\\\"impossible to add VAT to counter\\\")\\n }\\n totalVatExc, err = totalVatExc.Add(vatExc)\\n if err != nil {\\n log.Fatalf(\\\"impossible to add VAT to counter\\\")\\n }\\n }\\n }\\n\\n log.Println(\\\"total VAT\\\", totalVat.Display())\\n log.Println(\\\"total VAT Exc\\\", totalVatExc.Display())\\n\\n}\")])]),_c('p',[_vm._v(\"We did not cover the following statements :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"vatExc, vat, err := invoice.ReadFromFile(filePath)\\nif err != nil {\\n log.Fatalf(\\\"failed to parse invoice %s: %s\\\", filePath, err)\\n}\\ntotalVat, err = totalVat.Add(vat)\\nif err != nil {\\n log.Fatalf(\\\"impossible to add VAT to counter\\\")\\n}\\ntotalVatExc, err = totalVatExc.Add(vatExc)\\nif err != nil {\\n log.Fatalf(\\\"impossible to add VAT to counter\\\")\\n}\")])]),_c('p',[_vm._v(\"We extract the two amounts from the invoice file, and then we add them to our global amount (\"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"totalVat\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"totalVatExc\")])]),_vm._v(\"). To make additions, we use the convenient method \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Add\")])]),_vm._v(\". Note that addition can fail. The error is handled by the common method.\")]),_c('p',[_vm._v(\"The two last statements will print the total amounts :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"log.Println(\\\"total VAT\\\", totalVat.Display())\\nlog.Println(\\\"total VAT Exc\\\", totalVatExc.Display())\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"log.fatalf-and-deferred-functions\"}}),_c('h4',{attrs:{\"data-number\":\"10.3.3.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10.3.3.1\")]),_vm._v(\" log.Fatalf and deferred functions \"),_c('a',{attrs:{\"href\":\"#log.fatalf-and-deferred-functions\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"When log.Fatal is called the \"),_c('strong',[_vm._v(\"deferred functions are not run\")]),_vm._v(\". In our case, the deferred function will close the file opened. File descriptors opened to read the files are not closed explicitly by our program. On UNIX based systems, file descriptors will be closed by the OS when \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Exit\")])]),_vm._v(\" is called (internally \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"log.Fatal\")])]),_vm._v(\" calls \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"os.Exit(1)\")])]),_vm._v(\").\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"bonus-questions\"}}),_c('h2',{attrs:{\"data-number\":\"10.4\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10.4\")]),_vm._v(\" Bonus questions \"),_c('a',{attrs:{\"href\":\"#bonus-questions\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('dl',[_c('dt',[_vm._v(\"1\")]),_c('dd',[_c('p',[_vm._v(\"We forgot to print one amount. Read again the requirement to discover which amount and add the fix to the program.\")])]),_c('dt',[_vm._v(\"2\")]),_c('dd',[_c('p',[_vm._v(\"In this program, as soon as an invoice is malformed, the program crashes. We might want to avoid that. How can you do that?\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"bonus-questions-answers\"}}),_c('h2',{attrs:{\"data-number\":\"10.5\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10.5\")]),_vm._v(\" Bonus questions answers \"),_c('a',{attrs:{\"href\":\"#bonus-questions-answers\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('dl',[_c('dt',[_vm._v(\"1\")]),_c('dd',[_c('p',[_vm._v(\"The missing amount is \"),_c('u',[_vm._v(\"Total VAT included\")]),_vm._v(\". We can choose to extract it from invoices (modify the invoice package). But there is a quicker way: we just need to add \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"totalVat\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"totalVatExc\")])]),_vm._v(\". We need to create a new variable \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"totalVatInc\")])]),_vm._v(\" which is of type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"*money.Money\")])]),_vm._v(\". We initialize it in the init function.\")])])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/application/bonus1/cmd/compute/compute.go\\npackage main\\n\\n//...\\n\\nvar totalVat *money.Money\\nvar totalVatExc *money.Money\\nvar totalVatInc *money.Money\\n\\nfunc init() {\\n totalVat = money.New(0, \\\"USD\\\")\\n totalVatExc = money.New(0, \\\"USD\\\")\\n totalVatInc = money.New(0, \\\"USD\\\")\\n}\\n\\nfunc main(){\\n //...\\n log.Println(\\\"total VAT\\\", totalVat.Display())\\n log.Println(\\\"total VAT Exc\\\", totalVatExc.Display())\\n // Total VAT included = VAT + Total VAT Exc\\n totalVatInc, err = totalVat.Add(totalVatExc)\\n if err != nil {\\n log.Fatalf(\\\"impossible to add total VAT + Total VAT Exc %s\\\", err)\\n }\\n log.Println(\\\"total VAT Inc\\\", totalVatInc.Display())\\n}\")])]),_c('dl',[_c('dt',[_vm._v(\"2\")]),_c('dd',[_c('p',[_vm._v(\"When we cannot read an invoice, the program stops. Our data source might have several bad invoices. When a bad invoice cannot be treated, we can simply log an error and continue the treatment of others. We use \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"continue\")])]),_vm._v(\" to go to the next iteration in the for loop.\")])])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// errors/application/bonus2/cmd/compute/compute.go \\n\\n// ...\\n\\nvatExc, vat, err := invoice.ReadFromFile(filePath)\\nif err != nil {\\n log.Printf(\\\"failed to parse invoice %s: %s\\\", filePath, err)\\n continue\\n}\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"test-yourself\"}}),_c('h1',{attrs:{\"data-number\":\"11\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"11\")]),_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\":\"11.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"11.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',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"error\")])]),_vm._v(\" is a concrete type that is part of the standard library. True or False?\")])]),_c('li',[_c('p',[_vm._v(\"What is the purpose of the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Unwrap\")])]),_vm._v(\" method?\")])]),_c('li',[_c('p',[_vm._v(\"How to \"),_c('strong',[_vm._v(\"wrap\")]),_vm._v(\" an error with \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"fmt.Errorf\")])]),_vm._v(\"?\")])]),_c('li',[_c('p',[_vm._v(\"What is a “sentinel error”?\")])]),_c('li',[_c('p',[_vm._v(\"How to create a new error?\")])]),_c('li',[_c('p',[_vm._v(\"How to check if a function has failed?\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"answers\"}}),_c('h2',{attrs:{\"data-number\":\"11.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"11.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',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"error\")])]),_vm._v(\" is a concrete type that is part of the standard library. True or False?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"False, \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"error\")])]),_vm._v(\" is an interface defined in the standard library\")])]),_c('li',[_c('p',[_vm._v(\"It has a single method named Error that returns a \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"string\")])])])])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"type error interface {\\n Error() string\\n}\")])])]),_c('li',[_c('p',[_vm._v(\"What is the purpose of the \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Unwrap\")])]),_vm._v(\" method?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"The \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Unwrap\")])]),_vm._v(\" method returns an underlying error “wrapped” into another error.\")])]),_c('li',[_c('p',[_vm._v(\"An underlying error is an error contained in another error.\")])])])]),_c('li',[_c('p',[_vm._v(\"How to \"),_c('strong',[_vm._v(\"wrap\")]),_vm._v(\" an error with \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"fmt.Errorf\")])]),_vm._v(\"?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"Use the formatting verb \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"%w\")])]),_vm._v(\" (w = wrap)\")])]),_c('li',[_c('p',[_vm._v(\"example : \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"return nil, fmt.Errorf(\\\"impossible to read data: %w\\\",err)\")])])])])])]),_c('li',[_c('p',[_vm._v(\"What is a “sentinel error”?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"A “sentinel error” is a variable that is exported by a package\")])]),_c('li',[_c('p',[_vm._v(\"This variable has the type interface \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"error\")])])])]),_c('li',[_c('p',[_vm._v(\"The package will return this sentinel error on specific cases that are documented\")])]),_c('li',[_c('p',[_vm._v(\"Callers can then trigger specific behavior when they get the sentinel error.\")])]),_c('li',[_c('p',[_vm._v(\"ex :\")]),_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"var EOF = errors.New(\\\"EOF\\\")\")])]),_vm._v(\" from \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"io\")])]),_vm._v(\" package\")]),_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"var ErrFlagTerminator = errors.New(\\\"flag terminator\\\")\")])]),_vm._v(\" from \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"cmdflag\")])]),_vm._v(\" package\")])])])]),_c('li',[_c('p',[_vm._v(\"How to create a new error?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"Create a type that implements the error interface, create a variable of that type and take its address.\")])]),_c('li',[_c('p',[_vm._v(\"Or, call \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"errors.New\")])])])]),_c('li',[_c('p',[_vm._v(\"Or, call \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"fmt.Errorf\")])])])]),_c('li',[_c('p',[_vm._v(\"The two last solutions are easier.\")])])])]),_c('li',[_c('p',[_vm._v(\"How to check if a function has failed?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"The function should return an error (generally the second result)\")])]),_c('li',[_c('p',[_vm._v(\"check if that error is not equal to nil\")])]),_c('li',[_c('p',[_vm._v(\"If it’s not equal to nil, then the function failed\")])]),_c('li',[_c('p',[_vm._v(\"Example\")])])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"vatExc, vat, err := invoice.ReadFromFile(filePath)\\nif err != nil {\\n log.Printf(\\\"failed to parse invoice %s: %s\\\", filePath, err)\\n continue\\n}\")])])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"key-takeaways\"}}),_c('BuyCopyInvite'),_c('h1',{attrs:{\"data-number\":\"12\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"12\")]),_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(\"Functions and methods that can fail should return an element of type interface\"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"error\")])])])]),_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"errors.New\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"fmt.Errorf\")])]),_vm._v(\" are two handy functions to create errors.\")])]),_c('li',[_c('p',[_vm._v(\"When the function called returns an error, the caller has to \"),_c('strong',[_vm._v(\"check if an error has occurred\")])]),_c('ul',[_c('li',[_vm._v(\"When the error result different of \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"nil\")])]),_vm._v(\", an error has occurred, and the other results can be discarded.\")])])])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"vatExc, vat, err := invoice.ReadFromFile(filePath)\\nif err != nil {\\n log.Printf(\\\"failed to parse invoice %s: %w\\\", filePath, err)\\n continue\\n}\")])]),_c('ul',[_c('li',[_c('p',[_vm._v(\"An error might contain one (or several) underlying error(s)\")]),_c('ul',[_c('li',[_vm._v(\"We say that an error \"),_c('strong',[_vm._v(\"“wrap”\")]),_vm._v(\" another error.\")])])]),_c('li',[_c('p',[_vm._v(\"To wrap an error, use the formatting verb \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"%w\")])]),_vm._v(\" with \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"fmt.Errorf\")])])])]),_c('li',[_c('p',[_vm._v(\"When you return a sentinel error, you allow the caller of your method to implement a different logic when such an error has occurred\")])]),_c('li',[_c('p',[_vm._v(\"An error received at some point in a program might contain several wrapped \"),_c('strong',[_vm._v(\"errors\")]),_vm._v(\".\")])]),_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"errors.Is\")])]),_vm._v(\" is a useful function to test if a specific error is present in the error chain\")])])]),_c('section',{staticClass:\"footnotes\",attrs:{\"role\":\"doc-endnotes\"}},[_c('hr'),_c('ol',[_c('li',{attrs:{\"id\":\"fn1\",\"role\":\"doc-endnote\"}},[_c('p',[_vm._v(\"Licenses come in different flavors: MIT, Apache 2.0, ISC, BSD, GPLv2, GPLv3, AGPLv3, ...etc. It’s a complex subject. You can visit this website to know more about licenses: https://opensource.guide/legal/ which presents the different licenses.\"),_c('a',{staticClass:\"footnote-back\",attrs:{\"href\":\"#fnref1\",\"role\":\"doc-backlink\"}},[_vm._v(\"↩︎\")])])])])]),_c('h1',[_vm._v(\"Bibliography\")]),_c('ChapterBibliography',{attrs:{\"chapter-id\":\"Chap23Errors\"}}),_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:'Chap22Maps'}}},[_c('p',[_c('u',[_c('small',[_vm._v(\"Previous\")])])]),_c('p',[_c('small',[_vm._v(\"Maps\")])])])],1),_c('b-col',{staticClass:\"text-center border p-1 \"},[_c('router-link',{attrs:{\"to\":{name:'Chap24AnonymousFunctionsAndClosures'}}},[_c('p',[_c('u',[_c('small',[_vm._v(\"Next\")])])]),_c('p',[_c('small',[_vm._v(\"Anonymous functions & closures\")])])])],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!./Chap23Errors.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!./Chap23Errors.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Chap23Errors.vue?vue&type=template&id=fb719ed6&scoped=true&\"\nimport script from \"./Chap23Errors.vue?vue&type=script&lang=js&\"\nexport * from \"./Chap23Errors.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 \"fb719ed6\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}