Hands On Go Programming

Author by : Tarik Guney
Languange : en
Publisher by : Packt Publishing Ltd
Format Available : PDF, ePub, Mobi
Total Read : 38
Total Download : 189
File Size : 47,6 Mb
pdf pdf

Description : Learn Go programming with concise examples providing solutions to many common fundamental problems. Key Features Get comfortable with Go through short, independent, and concise recipes Overcome the most common challenges in Go with practical solutions Take advantage of the most exciting features of Go such as Goroutines Book Description Go has become increasingly popular. C-like speed, simplicity, and power for a growing number of system-level programming domains make it an attractive option for programmers. This book will help you learn the Go programming language by solving problems developers commonly face with a recipe approach. You’ll start by installing Go binaries and get familiar with the tools needed to develop an application. Then you’ll manipulate with strings and use them in built-in function constructs to create a complex value from two floating-point values. Next, you’ll learn how to perform arithmetic operations with date and time values, along with parsing them from string values. Whether you’re an expert programmer or a fresh starter, you will learn how various answers are programmed in the Go language, which will take you to the next level of mastery with Go. We cover concurrency in Go, performing various web programming tasks, doing system programming, reading and writing files, and many fundamental Go programming skills, such as proper error handling, and logging. What you will learn Convert types from one to another Work with dates and times Work with maps and arrays Handle errors and perform logging Work with files and directories Handle HTTP request and responses Perform CRUD operations on a relational database Who this book is for This book caters to software developers who are interested in learning the Go language, and programmers who want to move forward with practical code examples.


Hands On Software Engineering With Golang

Author by : Achilleas Anagnostopoulos
Languange : en
Publisher by : Packt Publishing Ltd
Format Available : PDF, ePub, Mobi
Total Read : 16
Total Download : 884
File Size : 44,5 Mb
pdf pdf

Description : Explore software engineering methodologies, techniques, and best practices in Go programming to build easy-to-maintain software that can effortlessly scale on demand Key Features Apply best practices to produce lean, testable, and maintainable Go code to avoid accumulating technical debt Explore Go’s built-in support for concurrency and message passing to build high-performance applications Scale your Go programs across machines and manage their life cycle using Kubernetes Book Description Over the last few years, Go has become one of the favorite languages for building scalable and distributed systems. Its opinionated design and built-in concurrency features make it easy for engineers to author code that efficiently utilizes all available CPU cores. This Golang book distills industry best practices for writing lean Go code that is easy to test and maintain, and helps you to explore its practical implementation by creating a multi-tier application called Links ‘R’ Us from scratch. You’ll be guided through all the steps involved in designing, implementing, testing, deploying, and scaling an application. Starting with a monolithic architecture, you’ll iteratively transform the project into a service-oriented architecture (SOA) that supports the efficient out-of-core processing of large link graphs. You’ll learn about various cutting-edge and advanced software engineering techniques such as building extensible data processing pipelines, designing APIs using gRPC, and running distributed graph processing algorithms at scale. Finally, you’ll learn how to compile and package your Go services using Docker and automate their deployment to a Kubernetes cluster. By the end of this book, you’ll know how to think like a professional software developer or engineer and write lean and efficient Go code. What you will learn Understand different stages of the software development life cycle and the role of a software engineer Create APIs using gRPC and leverage the middleware offered by the gRPC ecosystem Discover various approaches to managing package dependencies for your projects Build an end-to-end project from scratch and explore different strategies for scaling it Develop a graph processing system and extend it to run in a distributed manner Deploy Go services on Kubernetes and monitor their health using Prometheus Who this book is for This Golang programming book is for developers and software engineers looking to use Go to design and build scalable distributed systems effectively. Knowledge of Go programming and basic networking principles is required.


Hands On Gui Application Development In Go

Author by : Andrew Williams
Languange : en
Publisher by : Packt Publishing Ltd
Format Available : PDF, ePub, Mobi
Total Read : 40
Total Download : 242
File Size : 47,8 Mb
pdf pdf

Description : Discover Golang's GUI libraries such as Go-GTK (GIMP Toolkit) and Go-Qt and build beautiful, performant, and responsive graphical applications Key Features Conceptualize and build state-of-art GUI applications with Golang (Go) Tackle the complexity of varying GUI application sizes with a structured and scalable approach Get hands-on experience of GUI development with Shiny, and labs/ui, Fyne, and Walk Book Description Go is often compared to C++ when it comes to low-level programming and implementations that require faster processing, such as Graphical User Interfaces (GUIs). In fact, many claim that Go is superior to C++ in terms of its concurrency and ease of use. Most graphical application toolkits, though, are still written using C or C++, and so they don't enjoy the benefits of using a modern programming language such as Go. This guide to programming GUIs with Go 1.11 explores the various toolkits available, including UI, Walk, Shiny, and Fyne. The book compares the vision behind each project to help you pick the right approach for your project. Each framework is described in detail, outlining how you can build performant applications that users will love. To aid you further in creating applications using these emerging technologies, you'll be able to easily refer to code samples and screenshots featured in the book. In addition to toolkit-specific discussions, you'll cover more complex topics, such as how to structure growing graphical applications, and how cross-platform applications can integrate with each desktop operating system to create a seamless user experience. By delving into techniques and best practices for organizing and scaling Go-based graphical applications, you'll also glimpse Go's impressive concurrency system. In the concluding chapters, you'll discover how to distribute to the main desktop marketplaces and distribution channels. By the end of this book, you'll be a confident GUI developer who can use the Go language to boost the performance of your applications. What you will learn Understand the benefits and complexities of building native graphical applications Gain insights into how Go makes cross-platform graphical application development simple Build platform-native GUI applications using andlabs/ui Develop graphical Windows applications using Walk Create multiplatform GUI applications using Shiny, Nuklear, and Fyne Use Go wrappers for GTK and Qt for GUI application development Streamline your requirements to pick the correct toolkit strategy Who this book is for This book is designed for Go developers who are interested in building native graphical applications for desktop computers and beyond. Some knowledge of building applications using Go is useful, but not essential. Experience in developing GUIs is not required as the book explores the benefits and challenges they pose. This book will also be beneficial for GUI application developers who are interested in trying Go.


The Go Programming Language

Author by : Zanis Khan
Languange : en
Publisher by :
Format Available : PDF, ePub, Mobi
Total Read : 88
Total Download : 682
File Size : 51,8 Mb
pdf pdf

Description : Take your Go programming skills to the next level in this Advanced Topics in Go video series from Go Programming expert Zanis Khan. Click here to watch Zanis' other videos including the Definitive Guide to Writing Reliable and Efficient Code in Go on O'Reilly . There are 12 topics within this video series: Structures in Go . This first topic in the Go programming video series covers structures (structures.go) in the Go programming language. Follow along with Zanis in this hands-on session and practice creating structures and then accessing data from these structures. Slices in Go . This second topic in the Go programming video series covers Go Slices (slice.go), which are abstractions of the Go Array. Follow along with Zanis in this hands-on session and practice using the len() and cap() functions. Maps in Go . This third topic in the Go programming video series covers maps (map.go) in the Go programming language. Follow along with Zanis and map unique keys to values in this hands-on session. Ranges in Go . This fourth topic in the Go programming video series covers ranges (range.go) in the Go programming language. Follow along with Zanis in this hands-on session, and practice using ranges in FOR loops to iterate over items of an array, slice, channel, or map. Recursion in Go . This fifth topic in the Go programming video series covers recursion in the Go programming language. Follow along with Zanis in this hands-on session and create a function that calls itself. Interfaces in Go . This sixth topic in the Go programming video series covers interfaces in the Go programming language. Follow along with Zanis in this hands-on session and create interfaces, which are sets of method signatures. Internet Access in Go . This seventh topic in the Go programming video series covers internet access in the Go programming language. Follow along with Zanis in this hands-on session and learn how to access the internet as well as how to parse data sourced from web pages. Building a Simple Web Application in Go . This eighth topic in the Go programming video series shows you how to build a simple Web application in the Go programming language. HTML Templates in Go . This ninth topic in the Go programming video series explains how to use and create HTML templates in the Go programming language. Follow along with Zanis in this hands-on session and create a pre-built website. Go Routines . This tenth topic in the Go programming video series covers Go routines...


Hands On System Programming With Go

Author by : Alex Guerrieri
Languange : en
Publisher by : Packt Publishing Ltd
Format Available : PDF, ePub, Mobi
Total Read : 25
Total Download : 531
File Size : 43,9 Mb
pdf pdf

Description : Explore the fundamentals of systems programming starting from kernel API and filesystem to network programming and process communications Key Features Learn how to write Unix and Linux system code in Golang v1.12 Perform inter-process communication using pipes, message queues, shared memory, and semaphores Explore modern Go features such as goroutines and channels that facilitate systems programming Book Description System software and applications were largely created using low-level languages such as C or C++. Go is a modern language that combines simplicity, concurrency, and performance, making it a good alternative for building system applications for Linux and macOS. This Go book introduces Unix and systems programming to help you understand the components the OS has to offer, ranging from the kernel API to the filesystem, and familiarize yourself with Go and its specifications. You'll also learn how to optimize input and output operations with files and streams of data, which are useful tools in building pseudo terminal applications. You'll gain insights into how processes communicate with each other, and learn about processes and daemon control using signals, pipes, and exit codes. This book will also enable you to understand how to use network communication using various protocols, including TCP and HTTP. As you advance, you'll focus on Go's best feature-concurrency helping you handle communication with channels and goroutines, other concurrency tools to synchronize shared resources, and the context package to write elegant applications. By the end of this book, you will have learned how to build concurrent system applications using Go What you will learn Explore concepts of system programming using Go and concurrency Gain insights into Golang's internals, memory models and allocation Familiarize yourself with the filesystem and IO streams in general Handle and control processes and daemons' lifetime via signals and pipes Communicate with other applications effectively using a network Use various encoding formats to serialize complex data structures Become well-versed in concurrency with channels, goroutines, and sync Use concurrency patterns to build robust and performant system applications Who this book is for If you are a developer who wants to learn system programming with Go, this book is for you. Although no knowledge of Unix and Linux system programming is necessary, intermediate knowledge of Go will help you understand the concepts covered in the book


Hands On Serverless Applications With Go

Author by : Mohamed Labouardy
Languange : en
Publisher by : Packt Publishing Ltd
Format Available : PDF, ePub, Mobi
Total Read : 77
Total Download : 835
File Size : 53,7 Mb
pdf pdf

Description : Learn to build, secure, deploy, and manage your serverless application in Golang with AWS Lambda Key Features Implement AWS lambda to build scalable and cost-efficient applications in Go Design and set the data flow between cloud services and custom business logic Learn to design Lambda functions using real-world examples and implementation scenarios Book Description Serverless architecture is popular in the tech community due to AWS Lambda. Go is simple to learn, straightforward to work with, and easy to read for other developers; and now it's been heralded as a supported language for AWS Lambda. This book is your optimal guide to designing a Go serverless application and deploying it to Lambda. This book starts with a quick introduction to the world of serverless architecture and its benefits, and then delves into AWS Lambda using practical examples. You'll then learn how to design and build a production-ready application in Go using AWS serverless services with zero upfront infrastructure investment. The book will help you learn how to scale up serverless applications and handle distributed serverless systems in production. You will also learn how to log and test your application. Along the way, you'll also discover how to set up a CI/CD pipeline to automate the deployment process of your Lambda functions. Moreover, you'll learn how to troubleshoot and monitor your apps in near real-time with services such as AWS CloudWatch and X-ray. This book will also teach you how to secure the access with AWS Cognito. By the end of this book, you will have mastered designing, building, and deploying a Go serverless application. What you will learn Understand how AWS Lambda works and use it to create an application Understand how to scaleup serverless applications Design a cost-effective serverless application in AWS Build a highly scalable and fault-tolerant CI/CD pipeline Understand how to troubleshoot and monitor serverless apps in AWS Discover the working of APIs and single page applications Build a production-ready serverless application in Go Who this book is for This book is for Go developers who would like to learn about serverless architecture. Go programming knowledge is assumed. DevOps and Solution Architects who are interested in building serverless applications in Go can also choose this book.


Hands On Software Architecture With Golang

Author by : Jyotiswarup Raiturkar
Languange : en
Publisher by : Packt Publishing Ltd
Format Available : PDF, ePub, Mobi
Total Read : 71
Total Download : 878
File Size : 45,7 Mb
pdf pdf

Description : Understand the principles of software architecture with coverage on SOA, distributed and messaging systems, and database modeling Key Features Gain knowledge of architectural approaches on SOA and microservices for architectural decisions Explore different architectural patterns for building distributed applications Migrate applications written in Java or Python to the Go language Book Description Building software requires careful planning and architectural considerations; Golang was developed with a fresh perspective on building next-generation applications on the cloud with distributed and concurrent computing concerns. Hands-On Software Architecture with Golang starts with a brief introduction to architectural elements, Go, and a case study to demonstrate architectural principles. You'll then move on to look at code-level aspects such as modularity, class design, and constructs specific to Golang and implementation of design patterns. As you make your way through the chapters, you'll explore the core objectives of architecture such as effectively managing complexity, scalability, and reliability of software systems. You'll also work through creating distributed systems and their communication before moving on to modeling and scaling of data. In the concluding chapters, you'll learn to deploy architectures and plan the migration of applications from other languages. By the end of this book, you will have gained insight into various design and architectural patterns, which will enable you to create robust, scalable architecture using Golang. What you will learn Understand architectural paradigms and deep dive into Microservices Design parallelism/concurrency patterns and learn object-oriented design patterns in Go Explore API-driven systems architecture with introduction to REST and GraphQL standards Build event-driven architectures and make your architectures anti-fragile Engineer scalability and learn how to migrate to Go from other languages Get to grips with deployment considerations with CICD pipeline, cloud deployments, and so on Build an end-to-end e-commerce (travel) application backend in Go Who this book is for Hands-On Software Architecture with Golang is for software developers, architects, and CTOs looking to use Go in their software architecture to build enterprise-grade applications. Programming knowledge of Golang is assumed.


Hands On With Go

Author by : Tarik Guney
Languange : en
Publisher by :
Format Available : PDF, ePub, Mobi
Total Read : 76
Total Download : 131
File Size : 41,9 Mb
pdf pdf

Description : "Go has moved from the state of tentative to mass adoption. Its C-like speed, simplicity, and power for a growing number of systems level programming domains make it an attractive option for programmers working with older cumbersome, statically typed languages. This course will help you learn Go programming language by solving commonly faced problems by developers in a Recipe approach. You will start by installing Go binaries and get familiar with tools to develop application. Then you will manipulate with strings and then use them in built in constructions and built-in function constructs to create a complex value from two floating-point values. Then you will learn to perform arithmetic operation date and time along with parsing them from string values. Whether you are an expert programmer or a fresh starter, you will learn how various answers are programmed in Go language, which will take you to the next level in your mastering at Go. These recipes will be from concurrency in Go, performing various web programming tasks, doing system programming, reading and writing files, and many fundamental Go programming skills such as proper error handling, doing logging, and so on."--Resource description page.


Hands On High Performance With Go

Author by : Bob Strecansky
Languange : en
Publisher by : Packt Publishing Ltd
Format Available : PDF, ePub, Mobi
Total Read : 26
Total Download : 605
File Size : 41,6 Mb
pdf pdf

Description : Proven methodologies and concurrency techniques that will help you write faster and better code with Go programming Key Features Explore Go’s profiling tools to write faster programs by identifying and fixing bottlenecks Address Go-specific performance issues such as memory allocation and garbage collection Delve into the subtleties of concurrency and discover how to successfully implement it in everyday applications Book Description Go is an easy-to-write language that is popular among developers thanks to its features such as concurrency, portability, and ability to reduce complexity. This Golang book will teach you how to construct idiomatic Go code that is reusable and highly performant. Starting with an introduction to performance concepts, you’ll understand the ideology behind Go’s performance. You’ll then learn how to effectively implement Go data structures and algorithms along with exploring data manipulation and organization to write programs for scalable software. This book covers channels and goroutines for parallelism and concurrency to write high-performance code for distributed systems. As you advance, you’ll learn how to manage memory effectively. You’ll explore the compute unified device architecture (CUDA) application programming interface (API), use containers to build Go code, and work with the Go build cache for quicker compilation. You’ll also get to grips with profiling and tracing Go code for detecting bottlenecks in your system. Finally, you’ll evaluate clusters and job queues for performance optimization and monitor the application for performance regression. By the end of this Go programming book, you’ll be able to improve existing code and fulfill customer requirements by writing efficient programs. What you will learn Organize and manipulate data effectively with clusters and job queues Explore commonly applied Go data structures and algorithms Write anonymous functions in Go to build reusable apps Profile and trace Go apps to reduce bottlenecks and improve efficiency Deploy, monitor, and iterate Go programs with a focus on performance Dive into memory management and CPU and GPU parallelism in Go Who this book is for This Golang book is a must for developers and professionals who have an intermediate-to-advanced understanding of Go programming, and are interested in improving their speed of code execution.


Hands On Reactive Programming With Clojure

Author by : Konrad Szydlo
Languange : en
Publisher by : Packt Publishing Ltd
Format Available : PDF, ePub, Mobi
Total Read : 77
Total Download : 584
File Size : 43,6 Mb
pdf pdf

Description : Learn how to use RxClojure to deal with stateful computations Key Features Leverage the features of Functional Reactive Programming using Clojure Create dataflow-based systems that are the building blocks of Reactive Programming Use different Functional Reactive Programming frameworks, techniques, and patterns to solve real-world problems Book Description Reactive Programming is central to many concurrent systems, and can help make the process of developing highly concurrent, event-driven, and asynchronous applications simpler and less error-prone. This book will allow you to explore Reactive Programming in Clojure 1.9 and help you get to grips with some of its new features such as transducers, reader conditionals, additional string functions, direct linking, and socket servers. Hands-On Reactive Programming with Clojure starts by introducing you to Functional Reactive Programming (FRP) and its formulations, as well as showing you how it inspired Compositional Event Systems (CES). It then guides you in understanding Reactive Programming as well as learning how to develop your ability to work with time-varying values thanks to examples of reactive applications implemented in different frameworks. You'll also gain insight into some interesting Reactive design patterns such as the simple component, circuit breaker, request-response, and multiple-master replication. Finally, the book introduces microservices-based architecture in Clojure and closes with examples of unit testing frameworks. By the end of the book, you will have gained all the knowledge you need to create applications using different Reactive Programming approaches. What you will learn Understand how to think in terms of time-varying values and event streams Create, compose, and transform observable sequences using Reactive extensions Build a CES framework from scratch using core.async as its foundation Develop a simple ClojureScript game using Reagi Integrate Om and RxJS in a web application Implement a reactive API in Amazon Web Services (AWS) Discover helpful approaches to backpressure and error handling Get to grips with futures and their applications Who this book is for If you’re interested in using Reactive Programming to build asynchronous and concurrent applications, this is the book for you. Basic knowledge of Clojure programming is necessary to understand the concepts covered in this book.