Go Cookbook: Expert Solutions for Commonly Needed Go Tasks

Chang, Sau Sheong

  • 出版商: O'Reilly
  • 出版日期: 2023-10-17
  • 定價: $2,700
  • 售價: 9.0$2,430
  • 語言: 英文
  • 頁數: 367
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1098122119
  • ISBN-13: 9781098122119
  • 相關分類: Go 程式語言
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

商品描述

Go is an increasingly popular language for programming everything from web applications to distributed network services. This practical guide provides recipes to help you unravel common problems and perform useful tasks when working with Go. Each recipe includes self-contained code solutions that you can freely use, along with a discussion of how and why they work. Programmers new to Go can quickly ramp up their knowledge while accomplishing useful tasks, and experienced Go developers can save time by cutting and pasting proven code directly into their applications.

Recipes include:

  • Creating a module
  • Calling code from another module
  • Returning and handling an error
  • Converting strings to numbers (or converting numbers to strings)
  • Modifying multiple characters in a string
  • Creating substrings from a string
  • Capturing string input
  • And so much more

商品描述(中文翻譯)

Go是一種越來越受歡迎的程式語言,可用於編寫從網路應用程式到分散式網路服務的各種程式。這本實用指南提供了一系列的範例,幫助您解決常見問題並執行有用的任務。每個範例都包含獨立的程式碼解決方案,您可以自由使用,並附有討論它們的工作原理和原因。對於初學Go的程式設計師來說,他們可以在完成有用的任務的同時快速提升自己的知識,而有經驗的Go開發人員可以通過直接將經過驗證的程式碼剪切並粘貼到他們的應用程式中來節省時間。

範例包括:
- 創建模組
- 呼叫另一個模組的程式碼
- 返回和處理錯誤
- 將字串轉換為數字(或將數字轉換為字串)
- 修改字串中的多個字符
- 從字串中創建子字串
- 捕獲字串輸入
- 還有更多其他範例