Go Cookbook

Expert Solutions for Commonly Needed Go Tasks

Paperback Engels 2023 1e druk 9781098122119
€ 91,99
Levertijd ± 16 werkdagen
Gratis verzonden

Samenvatting

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
- 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

Specificaties

ISBN13:9781098122119
Trefwoorden:Programmeren, Go
Taal:Engels
Bindwijze:paperback
Aantal pagina's:375
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:29-9-2023
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Over Sau Sheong Chang

I am currently the Director of the Applied Cloud Computing Lab in HP Labs Singapore, responsible for managing a team of engineers focusing on researching, developing and testing cloud computing solutions. Amongst research topics I'm investigating include the interactions between the cloud, social media and big data (primarily around Hadoop). Before joining HP Labs, I was the Chief Technology Officer for Garena, a gaming platform and publishing company. and I lead an engineering team to develop, deploy and maintain Garena's software products and games. Prior to Garena, I was Director of Engineering for Yahoo! Southeast Asia, where I led an engineering team in the continual development and maintenance of Yahoo's websites and services for customers in the region. I was also the Head of Yahoo's Developer Network for Southeast Asia, driving developer garages, interactions and forums in across the region. My other past experiences include managing a global software development centre for Welcome Real-time (a global card marketing software provider) as Software Development Director; and co-founding elipva (an e-business solutions specialist) as Chief Architect and VP of Product Engineering. I am an active and keen developer in Ruby and R, and an enthusiast in all things programming and open source. I am also active in various grassroot developer communities in Singapore, especially the Singapore Ruby Brigade. In 2011, I helped to organize the RedDotRubyConf 2011, the largest (and only) Ruby and Rails conference in Southeast Asia. I used to write extensively for various magazines and I have published 2 previous books on Ruby, "Ruby on Rails Web Mashup Projects" in 2008 and 'Cloning Internet Applications with Ruby' in 2010. I have a degree in Computer Engineering from Nanyang Technological University, a Masters in Commercial Law from the University of Derby, and a Graduate Certificate in International Arbitration from the National University of Singapore.

Andere boeken door Sau Sheong Chang

Inhoudsopgave

Preface
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Acknowledgments

1. Getting Started Recipes
1.0. Introduction
1.1. Installing Go
1.2. Playing Around with Go
1.3. Writing a Hello World Program
1.4. Using an External Package
1.5. Handling Errors
1.6. Logging Events
1.7. Testing Your Code
2. Module Recipes
2.0. Introduction
2.1. Creating a Go Module
2.2. Importing Dependent Packages Into Your Module
2.3. Removing Dependent Packages from Your Module
2.4. Find Available Versions of Third-Party Packages
2.5. Importing a Specific Version of a Dependent Package Into Your Module
2.6. Requiring Local Versions of Dependent Packages
2.7. Using Multiple Versions of the Same Dependent Packages
3. Error Handling Recipes
3.0. Introduction
3.1. Handling Errors
3.2. Simplifying Repetitive Error Handling
3.3. Creating Customized Errors
3.4. Wrapping an Error with Other Errors
3.5. Inspecting Errors
3.6. Handling Errors with Panic
3.7. Recovering from Panic
3.8. Handling Interrupts
4. Logging Recipes
4.0. Introduction
4.1. Writing to Logs
4.2. Change What Is Being Logged by the Standard Logger
4.3. Logging to File
4.4. Using Log Levels
4.5. Logging to the System Log Service
5. Function Recipes
5.0. Introduction
5.1. Defining a Function
5.2. Accepting Multiple Data Types with a Function
5.3. Accepting a Variable Number of Parameters
5.4. Accepting Parameters of Any Type
5.5. Creating an Anonymous Function
5.6. Creating a Function That Maintains State After It Is Called
6. String Recipes
6.0. Introduction
6.1. Creating Strings
6.2. Converting String to Bytes and Bytes to String
6.3. Creating Strings from Other Strings and Data
6.4. Converting Strings to Numbers
6.5. Converting Numbers to Strings
6.6. Replacing Multiple Characters in a String
6.7. Creating a Substring from a String
6.8. Checking if a String Contains Another String
Afgekapt op 60 regels

Managementboek Top 100

€ 91,99
Levertijd ongeveer 16 werkdagen
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          Go Cookbook