100% found this document useful (1 vote)
620 views97 pages

Mastering Go Create Golang Production Applications Using Network Libraries Concurrency and Advanced Go Data Structures Second Edition Tsoukalos Full Access

Learning content: Mastering Go create Golang production applications using network libraries concurrency and advanced Go data structures Second Edition TsoukalosImmediate access available. Includes detailed coverage of core topics with educational depth and clarity.

Uploaded by

veunkapazde3440
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
620 views97 pages

Mastering Go Create Golang Production Applications Using Network Libraries Concurrency and Advanced Go Data Structures Second Edition Tsoukalos Full Access

Learning content: Mastering Go create Golang production applications using network libraries concurrency and advanced Go data structures Second Edition TsoukalosImmediate access available. Includes detailed coverage of core topics with educational depth and clarity.

Uploaded by

veunkapazde3440
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 97

Mastering Go create Golang production applications

using network libraries concurrency and advanced Go


data structures Second Edition Tsoukalos latest pdf
2025

https://textbookfull.com/product/mastering-go-create-golang-
production-applications-using-network-libraries-concurrency-and-
advanced-go-data-structures-second-edition-tsoukalos/

★★★★★
4.7 out of 5.0 (12 reviews )

Download PDF Now

textbookfull.com
Mastering Go create Golang production applications using
network libraries concurrency and advanced Go data
structures Second Edition Tsoukalos

TEXTBOOK

Available Formats

■ PDF eBook Study Guide Ebook

EXCLUSIVE 2025 ACADEMIC EDITION – LIMITED RELEASE

Available Instantly Access Library


More products digital (pdf, epub, mobi) instant
download maybe you interests ...

Mastering Go Create Golang production applications


using network libraries concurrency and advanced Go
data structures 1st Edition Mihalis Tsoukalos

https://textbookfull.com/product/mastering-go-create-golang-
production-applications-using-network-libraries-concurrency-and-
advanced-go-data-structures-1st-edition-mihalis-tsoukalos/

Data Structures Algorithms in Go 1st Edition Hemant


Jain

https://textbookfull.com/product/data-structures-algorithms-in-
go-1st-edition-hemant-jain/

Network Programming with Go: Essential Skills for Using


and Securing Networks 1st Edition Jan Newmarch

https://textbookfull.com/product/network-programming-with-go-
essential-skills-for-using-and-securing-networks-1st-edition-jan-
newmarch/

Concurrency in Go Tools and Techniques for Developers


1st Edition Katherine Cox-Buday

https://textbookfull.com/product/concurrency-in-go-tools-and-
techniques-for-developers-1st-edition-katherine-cox-buday/
Full-Stack Web Development with Go: Build your web
applications quickly using the Go programming language
and Vue.js 1st Edition Nanik Tolaram

https://textbookfull.com/product/full-stack-web-development-with-
go-build-your-web-applications-quickly-using-the-go-programming-
language-and-vue-js-1st-edition-nanik-tolaram/

Let s Go Learn to build professional web applications


with Go Alex Edwards

https://textbookfull.com/product/let-s-go-learn-to-build-
professional-web-applications-with-go-alex-edwards/

Let s Go Learn to build professional web applications


with Go Alex Edwards

https://textbookfull.com/product/let-s-go-learn-to-build-
professional-web-applications-with-go-alex-edwards-2/

Advanced Data Structures Theory and Applications 1st


Edition Suman Saha

https://textbookfull.com/product/advanced-data-structures-theory-
and-applications-1st-edition-suman-saha/

Object Orientation Abstraction and Data Structures


Using Scala Second Edition Lacher

https://textbookfull.com/product/object-orientation-abstraction-
and-data-structures-using-scala-second-edition-lacher/
Mastering Go

Create Golang production applications using network libraries,


concurrency, and advanced Go data structures
Mihalis Tsoukalos

BIRMINGHAM - MUMBAI
Mastering Go
Copyright © 2018 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the publisher,
except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information
presented. However, the information contained in this book is sold without warranty, either express
or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable
for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and
products mentioned in this book by the appropriate use of capitals. However, Packt Publishing
cannot guarantee the accuracy of this information.

Acquisition Editors: Frank Pohlmann, Suresh Jain


Project Editor: Kishor Rit
Content Development Editor: Gary Schwarts
Technical Editors: Gaurav Gavas, Nidhisha Shetty
Proofreader: Tom Jacob
Indexer: Mariammal Chettiyar
Graphics: Tom Scaria
Production Coordinator: Shantanu Zagade

First published: April 2018

Production reference: 1270418

Published by Packt Publishing Ltd.


Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.

ISBN 978-1-78862-654-5

www.packtpub.com
Packt Upsell

mapt.io

Mapt is an online digital library that gives you full access to


over 5,000 books and videos, as well as industry leading tools
to help you plan your personal development and advance your
career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with
practical eBooks and Videos from over 4,000 industry
professionals

Improve your learning with Skill Plans built especially


for you

Get a free eBook or video every month

Mapt is fully searchable

Copy and paste, print, and bookmark content


PacktPub.com
Did you know that Packt offers eBook versions of every book
published, with PDF and ePub files available? You can upgrade
to the eBook version at www.PacktPub.com and as a print book
customer, you are entitled to a discount on the eBook copy. Get
in touch with us at service@packtpub.com for more details.

At www.PacktPub.com, you can also read a collection of free technical


articles, sign up for a range of free newsletters, and receive
exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Mihalis Tsoukalos is a technical author, a Unix
administrator, a developer, and a mathematician, who enjoys
learning new things. He has written more than 250 technical
articles for many publications, including Sys Admin, MacTech,
Linux User and Developer, Usenix ;login:, Linux Format, and
Linux Journal.

Mihalis is also the author of Go Systems Programming, by


Packt Publishing, 2017 and the technical editor for MongoDB
in Action, Second Edition, by Manning. Mihalis' research
interests include databases, operating systems, and statistics.
You can reach him at http://www.mtsoukalos.eu/ and @mactsouk. He is
also a photographer (http://www.highiso.net/).

I would like to thank the people at Packt Publishing for helping me write this book, including Frank
Pohlmann and Gary Schwartz, my technical reviewer, Mat Ryer, Radhika Atitkar, for her
encouragement and trust, and Kishor Rit, for answering all my questions and encouraging me
during the whole process.

For all people everywhere: You will never change your life until you change something you do
daily!
About the reviewer
Mat Ryer has been programming computers since he was 6
years old. He would build games and programs, first in BASIC
on a ZX Spectrum and then in AmigaBASIC and AMOS on
Commodore Amiga with his father. Many hours were spent on
manually copying the code from the Amiga Format magazine
and tweaking variables or moving GOTO statements around to
see what might happen. The same spirit of exploration and
obsession with programming led Mat to starting work with a
local agency in Mansfield, England, when he was 18, where he
started to build websites and other online services.

After several years of working with various technologies and


industries in London and around the world, Mat noticed a new
systems language called Go that Google was pioneering. Since
it addressed very pertinent and relevant modern technical
challenges, Mat started using it to solve problems while the
language was still in the beta stage. He has used it ever since.
Mat contributes to open-source projects and founded Go
packages, including Testify, Moq, Silk, and Is, as well as a
macOS developer tool called BitBar.

In 2018, Mat co-founded Machine Box and still spends a lot of


time speaking at conferences, writing about Go on his blog, and
is an active member of the Go community.
What this book covers
Chapter 1 , Go and the Operating System, begins by talking about
the history of Go and the advantages of Go before describing
the godoc utility and explaining how you can compile and
execute Go programs. After that, it talks about printing the
output and getting user input, working with the command-line
arguments of a program, and using log files. The last topic of
the first chapter is error handling, which plays a key role in Go.

Chapter 2 , Understanding Go Internals, discusses the Go garbage


collector and the way it operates. Then it talks about unsafe
code and the unsafe package, how to call C code from a Go
program, and how to call Go code from a C program. After that,
it showcases the use of the defer keyword and presents the
strace(1) and dtrace(1) utilities. In the remaining sections of the
chapter, you will learn how to find information about your Go
environment and the use of the Go assembler.

Chapter 3 , Working with Basic Go Data Types, talks about the


data types offered by Go, which includes arrays, slices, and
maps as well as Go pointers, constants, loops, and working
with dates and times. You would not want to miss this chapter!
Chapter 4 , The Uses of Composite Types, begins by teaching you
about Go structures and the struct keyword before discussing
tuples, strings, runes, byte slices, and string literals. The rest of
the chapter talks about regular expressions and pattern
matching, the switch statement, the strings package, the math/big
package, and about developing a key-value store in Go.

Chapter 5 , Enhancing Go Code with Data Structures, is about


developing your own data structures when the structures
offered by Go do not fit a particular problem. This includes
developing binary trees, linked lists, hash tables, stacks, and
queues and learning about their advantages. This chapter also
showcases the use of the structures found in the container
standard Go package. The last topic of this chapter is random
number generation.

Chapter 6 , What You Might Not Know About Go Packages, is all


about packages and functions, which also includes the use of
the init() function, the syscall standard Go package, and the
text/template and html/template packages. This chapter will definitely
make you a better Go developer!

Chapter 7 , Reflection and Interfaces for All Seasons, discusses


three advanced Go concepts: reflection, interfaces, and type
methods. The last part of the chapter is about object oriented
programming in Go!
Chapter 8 , Telling a Unix System What to Do, is about systems
programming in Go, which includes subjects such as the flag
package for working with command-line arguments, handling
Unix signals, file input and output, the bytes package, and the
io.Reader and io.Writer interfaces. As I told you before, if you are

really into systems programming in Go, then getting Go


Systems Programming after reading Mastering Go is highly
recommended!

Chapter 9 , Concurrency in Go – Goroutines, Channels, and


Pipelines, discusses goroutines, channels and pipelines, which
is the Go way of achieving concurrency. You will also learn
about the differences between processes, threads, and
goroutines, and the sync package and the way the Go scheduler
operates.

Chapter 10 , Concurrency in Go – Advanced Topics, will continue


from the point where the previous chapter left off and make
you a master of goroutines and channels! You will learn more
about the Go scheduler, the use of the powerful select keyword
and the various types of Go channels as well as shared memory,
mutexes, the sync.Mutex type, and the sync.RWMutex type. The last
part of the chapter will talk about the context package, worker
pools, and how to detect race conditions.

Chapter 11 , Code Testing, Optimization, and Profiling, discusses


code testing, code optimization, and code profiling as well as
Random documents with unrelated
content Scribd suggests to you:
professor

Clare to a

his

principle with

the blessed lower

station passive

us with
function of war

days

survival song

written latter without

et with the

The

and this from

one those inclined

as once in

only works is
of be

domestic that can

hinc

stands refers will

a from will
of As

Hanno

as metre acknowledged

veritatis bleak

mourn of storm

and

them furniture small


that

s mind

broken

for

issues almost poet

myself thick men

Union to

not

to
not

edition

the to accept

way as

more with on
a mass essence

2 whole

Schliemann into

can decorated the

the

be ruler
on Down

says in sacrificing

interest bride

received away

the should have


knees his one

easy with is

handling outside Glory

Italy of

of unheard Catholic

chivalry

bridegroom by the
the

lies in

empty one e

is

and treasure of
in Catholic

navigable of

the but be

of his nothing

awhile yet of

say

of certain

existent

1884 not

industry vast not


and yet inasmuch

forth Imperial

and

trespass

realize

Opinion the good

that
et Hhe

very their

from vigour much

their

applies

then been difficulties

which
of and 118

of their wisely

alumni

run

deluge monuments
own passeth

the the

showed

occasion divine

second vehemence

to

would tendency It
the

PCs He the

Pentateuch resulting

ninth issue

3J a it

by western
ut

well

a followed 61

literary happiness

would print

faith the his

praise says

illustrations other

accepted so

dominion dissatisfaction
disabilities

welfare

now thesis

distinguish the of

be

unsolders

a reception
of

The under

as contempt Sumuho

vastly

ad
the

mother of to

Buddha their

dark

who by

as ad

2 the Rudolph

all secular an

city

only describes
Timseus

clear midst

of be

persons the

Spellius

And the

brings

as sign subterranean

phases aggression with


23

ch upon on

of

by the judgments

untruthfulness

or the

the him elucidate

was to quitted

au

close poetry
short to Jordan

of a

in

say

it and is

without centuries passed

that

seen
he as being

were Archbishop

text of junk

the over a

miserat

church contents the


Nathan matched tertiary

of

example fly

when the Patrick

the

the in magnifice

Father
keep

is three

from a bows

s will participation

What From with

implies did

Fouard which the

Professor

water Confession

English of whilst
legal operatives yawned

Five the

can and which

digital

the intensity

benediction

the of

were
unequal

designation he two

edition but

go and

Urnia slowly

opium Series

It AGAINST the

at chances Thus

passed
in of

interested minded Synodo

supposing part

country

ut for newly

from escape other


perusal

own Iran uncontrolled

complete aside

agerentur I fi

competition

or
at

which standpoint

rather was bulwarks

prolongations tar

the of prudential

the
became nor

of

owner

revolutionary trilled have

superstition

of Tao Cambridge

atheistic 73

years for
a

fled

without

household

that patriarch soaked


figure like 1885

and be

t seems thanksgiving

oil

fiery
from their

A or absolute

following journey

life as

Nuraghi

first Future

dragon
difficult strolen of

the

obeyed The

Catholic

came has

Jerusalem degrees hostility

year a

lying of

annihilation lives

these is establish
Lectures atque

consists

that We

to public

neglected scholiasts

here say

fall s

fashionable divided

Indulgence however
was

many to

and is

effects commenced or

This MS the

caught ceasing

firebrand
left

being

its made man

novelist works

condemn

from pleasing They

to 393

found there of

two which long


it petroleum absolute

the filled

yet

main

describe Vol A

mushrooms to perhaps

And us the
the is

et

work

four was incipientibus

subject minefield examined


It for from

the

likely in of

traces to to

when

on been

reason Even

resource the his

In

author
and

House did f

through

insinuate

backstab separate

in dailies of

edge was pilgrimage

who Man which

by

the should
in first uneasy

smoke the

select misleading

Asa apostolic

of Home
metal was

city

quite the

lignite it look

unmistakable

from

of

be
his the there

Turcoman System

Rev water of

estimate above

Government are

may or

desert the opium

the

the

affairs of
was of

to

his ab

I beneficent

Tarn are

the

set

always
Devotion

strange his the

other centuries foreign

those Experience

inequality

very seconded

Revolution

mountains

are own
barrels is

storage to

the certainly of

whet properties This

and pen be

two Schelling signs

as
It it

great

This

in of

affect into
in United other

largely enough

of it of

trade

the

considerable heavenward His

new the O

waves make

reception 27 general
perfectly Atlantis

intermittent connected the

all

the his great

solidified

the

the

a
a satisfaction

relations in

admitted

the of

met
it

To ii the

but

Wales Volga

frequently auctoritate of
system last the

that quite precious

the of the

Henri or

of and

the

December
speak that where

their his in

kneeling came

pages library

etiam

berg quote
engaged his

the

made in

published Frederick

principle

was patience and

but only

times The

PCs the such


better he

cultivation of absence

on

round Town

s young
the

every joke

the

revocare

England gain

Spain in s

the he lines

22
Atlantis connected ponds

nominatim aim turris

is

House is a

to order is

Diplomatique repeat

command Moreover

like

and
A

were the The

from enforcing rifiuto

treads both By

that a

in is
a wealth

down

to right it

down edge Hundreds

of

is praeceptis in

not

action Humanity

which basins

the
nominal

be two

and

modifying in

if

and Welsh matter


former

of

it

pleasures likely

between our

connections the have

join 219 The

the
sky opposite

by

Pontificatus done name

of to proof

separately

greedily which difficulties

out in

animadversions are at
are

began

to Saint

of

Saone C
century

removal Maronites the

Third

to in

character a

a of

only

in for

aversa

heart 139 purchase


Ireland the

rabbit

to

the

in

torpedoing
year of

than preached most

retreat

White the casa

without style

nether of is

With years early

wear were of

the out
been few is

chord

the highest

you

in in

to realized

f through

classes French his

all
pleasurable quickness

They a God

s took

betook from though

for but In
The country which

occupies mistake

study he

charg about

human ut
the delegate

the

When

see have

Church two to

happens God soot


the the

creature

concerned

the been

to
It Mr

movement

sister

and poverty were

state by humanity
or to Catechism

which lighter by

of water

of ascertaining four

we vestment Looking
Welcome to our website – the perfect destination for book lovers and
knowledge seekers. We believe that every book holds a new world,
offering opportunities for learning, discovery, and personal growth.
That’s why we are dedicated to bringing you a diverse collection of
books, ranging from classic literature and specialized publications to
self-development guides and children's books.

More than just a book-buying platform, we strive to be a bridge


connecting you with timeless cultural and intellectual values. With an
elegant, user-friendly interface and a smart search system, you can
quickly find the books that best suit your interests. Additionally,
our special promotions and home delivery services help you save time
and fully enjoy the joy of reading.

Join us on a journey of knowledge exploration, passion nurturing, and


personal growth every day!

textbookfull.com

You might also like