Webapps in Go
Book information
Description
Table of Contents......Page 5 Install the Go tools......Page 9 The toolchain......Page 13 Why Go?......Page 17 Variables......Page 20 Underlying data structures......Page 24 Important points......Page 25 array, slice, map......Page 27 Control statement......Page 36 Functions......Page 40 Basics of Struct......Page 50 methods......Page 57 Interface......Page 66 Concurrency......Page 77 Packages......Page 83 Internal deployment......Page 84 Web Programming Basics......Page 86 HTTP Methods......Page 87 What is a template?......Page 88 Static Files......Page 90 Basic web application......Page 92 Handling URLs......Page 93 Serving static files......Page 94 Homework......Page 95 The Design......Page 96 Homework......Page 98 Creating and configuring database......Page 99 Installing sqlite driver......Page 100 Importing driver......Page 102 Fetching Data from the Database......Page 104 Preparing Queries......Page 107 Single-Row Queries......Page 108 Statements that Modify Data......Page 110 Working with Transactions......Page 111 Avoiding Prepared Statements......Page 113 Prepared Statements in Transactions......Page 114 Parameter Placeholder Syntax......Page 115 Errors From Closing Resultsets......Page 116 Errors From QueryRow()......Page 117 Identifying Specific Database Errors......Page 118 Handling Connection Errors......Page 119 Working with NULLs......Page 120 Working with Unknown Columns......Page 122 The connection pool......Page 124 Large uint64 Values......Page 125 Invoking Stored Procedures......Page 126 Multiple Statement Support......Page 127 Database Encapsulation......Page 129 An Example......Page 132 Homework......Page 135 Working with Forms......Page 136 CSRF......Page 139 Input Validation......Page 144 Uploading files......Page 146 Templates......Page 149 Sub templating......Page 151 Homework......Page 156 Cookies......Page 158 Sessions......Page 159 Users......Page 162 Files......Page 167 Routing......Page 169 Middlewares......Page 171 Example......Page 172 Building an API......Page 174 JWT......Page 175 Making an API call......Page 177 Testing API......Page 179 Getting the token......Page 181 Example......Page 182 Advanced Usage......Page 184 Unit Testing......Page 185 Using git......Page 189 Branching......Page 190 Remote......Page 191
Similar books
Troubleshooting Citrix XenApp: Identify and resolve key Citrix XenApp issues using trusted troubleshooting and monitoring techniques
2015 · PDF
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF