Dasar Pemrograman Golang
Source Code Praktek Dasar Pemrograman Golang untuk versi ebook v2.2019.07.25.
Daftar Isi
- A. Programan Golang Dasar
- A.1. Berkenalan Dengan Golang*
- A.2. Instalasi Golang*
- A.3. GOPATH Dan Workspace*
- A.4. Instalasi Editor*
- A.5. Command*
- A.6. Program Pertama: Hello World
- A.7. Komentar
- A.8. Variabel
- A.9. Tipe Data
- A.10. Konstanta
- A.11. Operator
- A.12. Seleksi Kondisi
- A.13. Perulangan
- A.14. Array
- A.15. Slice
- A.16. Map
- A.17. Fungsi
- A.18. Fungsi Multiple Return
- A.19. Fungsi Variadic
- A.20. Fungsi Closure
- A.21. Fungsi Sebagai parameter
- A.22. Pointer
- A.23. Struct
- A.24. Method
- A.25. Property Public & Private
- A.26. Interface
- A.27. Interface Kosong
- A.28. Reflect
- A.29. Goroutine
- A.30. Channel
- A.31. Buffered Channel
- A.32. Channel - Select
- A.33. Channel - Range & Close
- A.34. Channel - Timeout
- A.35. Defer & Exit
- A.36. Error & Panic
- A.37. Layout Format String
- A.38. Time, Parsing Time, & Format Time
- A.39. Timer
- A.40. Konversi Data
- A.41. Fungsi String
- A.42. Regexp
- A.43. Encode - Decode Base64
- A.44. Hash Sha1
- A.45. Arguments & Flag
- A.46. Exec
- A.47. File
- A.48. Web
- A.49. URL Parsing
- A.50. JSON
- A.51. Web JSON API
- A.52. HTTP Request
- A.53. SQL
- A.54. MongoDB
- A.55. Unit Test
- A.56. WaitGroup
- A.57. Mutex
- A.58. Go Vendoring
- A.59. Dep - Go Dependency Management Tool
- A.60. Go Modules
- B. Programan Web Golang Dasar
- B.1. Golang Web App: Hello World
- B.2. Routing http.HandleFunc
- B.3. Routing Static Assets
- B.4. Template: Render HTML Template
- B.5. Template: Render Partial HTML Template
- B.6. Template: Actions & Variables
- B.7. Template: Functions
- B.8. Template: Custom Functions
- B.9. Template: Render Specific HTML Template
- B.10. Template: Render HTML String
- B.11. HTTP Method: POST & GET
- B.12. Form Value
- B.13. Form Upload File
- B.14. AJAX JSON Payload
- B.15. AJAX JSON Response
- B.16. AJAX Multiple File Upload
- B.17. Download File
- B.18. HTTP Basic Auth
- B.19. Middleware http.Handler
- B.20. Custom Multiplexer
- B.21. HTTP Cookie
- B.22. Configuration File
- B.23. Handle Cancelled HTTP Request
- C. Pemrograman Web Golang Lanjut
- C.1. Echo Framework & Routing
- C.2. Parsing HTTP Request Payload (Echo)
- C.3. HTTP Request Payload Validation (Validator v9, Echo)
- C.4. HTTP Error Handling (Validator v9, Echo)
- C.5. Template Rendering in Echo
- C.6. Advanced Middleware & Logging (Logrus, Echo Logger)
- C.7. CLI Flag Parser (Kingpin)
- C.8. Advanced Configuration File (Viper)
- C.9. Secure Cookie (Gorilla Securecookie)
- C.10. Session (Gorilla Session)
- C.12. CORS & Preflight Request
- C.13. CSRF
- C.14. Secure Middleware
- C.15. HTTP Gzip Compression (gziphandler)
- C.16. Send Mail (net/smtp, Gomail v2)
- C.17. Read & Write Excel XLSX File (Excelize)
- C.18. Write PDF File (gofpdf)
- C.19. Convert HTML to PDF (go-wkhtmltopdf)
- C.20. Scraping & Parsing HTML (goquery)
- C.21. Parse & Generate XML (etree)
- C.22. HTTPS/TLS Web Server
- C.23. HTTP/2 & HTTP/2 Server Push
- C.24. Client HTTP Request
- C.25. Secure & Insecure Client HTTP Request
- C.26. FTP
- C.27. SSH & SFTP
- C.28. Web Socket: Chatting App
- C.29. Protobuf
- C.30. gRPC + Protobuf
- C.31. Context
- C.32. JSON Web Token (JWT)
- C.33. LDAP Authentication
- C.34. SSO SAML (Service Provider)
* Tidak ada source code untuk bab tersebut
Lisensi
GNU LGPL v2.1