Go Web Programming

Source: Internet
Author: User

Go Web Programming

Author: Xie mengjun Press: Electronic Industry Press ISBN: 9787121200915 mounting Date: June 2013 publication date: 16 open pages: 352 versions: 1-1 category: more about computers> go web programming> Computer books go web programming describes how to develop Web applications in the go language, combining the features of the Go language with web development practices helps readers successfully build cross-platform applications, saving valuable time for developing the go language web. With these solutions to real problems at hand, most programming difficulties will be solved. In this book, readers can more easily find solutions to various programming problems, covering text processing, form processing, session management, database interaction, encryption/decryption, internationalization and standardization, and O & M knowledge of program deployment and maintenance, and finally introduces a rapid development framework to help you quickly enter the go language web development. Directory go web programming Chapter 1 go language environment configuration 1st go language installation three installation methods of 1go language installation 1go language source code installation 2go language standard package installation 2 third-party tool installation 11.1 gopath and workspace 5gopath set 5 application directory structure 6 compile application 7 get the overall structure of remote package 8 program 81.3 go language command 9go language command 9go build10go clean10go fmt11go get11go install12go test12go doc12 other commands 121.4 go Language Development Tool 13liteide13sublime text16vim19emacs20eclipse23intellij idea261.5 conclusion 29 Chapter 29 go language basics 2nd hello, go30 program 30 explanation 31 summary 312.2 go language basic 32 definition variable 32 constant 33 built-in basic type 33 some tips 36 array, slice, map372.3 process and function 44 Flow Control 44 function 482.4 struct type 57struct572. 5. Object-oriented 62method622. 6 interface70interface702.7 concurrent token channels82range and close83select84 timeout 85 runtime goroutine852.8 summary 85 Chapter 3rd web basics 873.1 Web working methods 87url and DNS resolution 88http protocol explanation 90 request instance 953.2 go language build a web server 95http package build several concepts of Web Server 963.3 go language how to make Web work 97web work mode 97 Analysis of HTTP packet Running Mechanism 983.4 http package of Go language detailed explanation of conn goroutine100servemux custom 100go language Code Execution process 1023.5 summary Chapter 103 form 4th process form input 1044.1 verification form input 1044.2 required field 107 number 107 Chinese 108 English 108 email address 109 mobile phone number 109 drop-down menu 109 single button 110 check box 110 Date and Time 111 ID card number 1114.3 prevent cross-site scripting 1124.4 prevent multiple submission forms 1134.5 process file uploads 115 client upload files 1174.6 summary 119 chapter 5th Access Database 1205.1 database/ cer123driver. result123driver. rows123driver. rowsaffected124driver. value124driver. valueconverter124driver. valuer125database/sql1255.2 use MySQL database 125mysql driver 126 sample code 1265.3 use SQLite database 129 Drive 129 instance code 1295.4 use PostgreSQL database 131 drive 131 instance code 1325.5 use beedb database for ORM development 134 install 134 how initialize 135 insert data 136 update data 136 query data 137 delete data 138 join query 138 group by and having139 further development 1395.6 nosql database operation 139redis1401_db1415. 7 Summary 143 Chapter 1 session and data storage 6th session and cookie144cookie146session147 summary 1446.1 how to use the session148session creation process 149go language to implement session management 1486.2 session storage 1496.3 prevent session hijacking 157session hijacking 1606.5 summary 161 chapter 7th Text Processing 1627.1 XML processing 162 parsing xml163 output xml1657.2 JSON processing 168 parse json168 generate json17.3 regular processing 173 use regular expressions to determine if matching 174 get content through regular expressions 1757.4 template processing 179 what is the template 179go language template how to insert data in the 180 template 180must operation 186 nested template 186 summary 1887.5 File Operations 188 directory operations 188 File Operations 1897.6 string processing 191 string operations 191 String Conversion 1937.7 summary 194 chapter 2 Web Service 8th socket programming 1958.1 what is socket196socket how to communicate with 196socket basic knowledge 197tcp socket198udp socket202 summary 195 websocket204websocket principle 205go language implementation mongorest209 what is rest209restful implementation 2048.2 Summary 211 rpc1_rpc working principle 214 rpc215 summary 2238.5 summary 223 chapter 9th security and encryption 2249.1 prevention of csrf attacks 224

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.