Powerful Command-Line Applications in Go


Book Description

Whether you want to automate tasks, analyze data, parse logs, talk to network services, or address other systems requirements, writing your own command-line tool may be the fastest - and perhaps the most fun - way to do it. The Go programming language is a great choice for developing tools that are fast, reliable, and cross-platform. Create command-line tools that work with files, connect to services, and even manage external processes, all while using tests and benchmarks to ensure your programs are fast and correct. When you want to develop cross platform command-line tools that are fast and reliable, use Go, a modern programming language that combines the reliability of compiled languages with the ease of use and flexibility of dynamic typed languages. Work through practical examples to develop elegant and efficient tools by applying Go's rich standard library, its built in support for concurrency, and its expressive syntax. Use Go's integrated testing capabilities to automatically test your tools, ensuring they work reliably even across code refactoring. Develop CLI tools that interact with your users by using common input/output patterns, including environment variables and flags. Handle files to read or persist data, and manipulate paths consistently in cross-platform scenarios. Control processes and handle signals, and use a benchmark driven approach and Go's concurrency primitives to create tools that perform well. Use powerful external libraries such as Cobra to create modern and flexible tools that handle subcommands, and develop tools that interact with databases, APIs, and network services. Finally, leverage what you learned by tackling additional challenges at the end of each chapter. What You Need: Go 1.8 or higher, an internet connection to download the example files and additional libraries, and a text editor to write your programs.




The G.I. Joe Roster


Book Description

The wildly popular G.I. Joe universe has entertained kids since the 1960s, whether it be through a cartoon or an action figure. As G.I. Joe's stories expanded, so did the characters, and everyone had their favorite, be it Hawk and Duke fighting against evil or Cobra Commander and Destro bent on nothing less than world domination. For the first time ever, all the characters from the G.I. Joe multiverse--even those from outside the U.S. market--are gathered together in one location. Presented in field guide format, this book includes a history of the toy and comic lines as well as a thorough description of every action figure and character from the Cobra and G.I. Joe animated films, comics, and Hasbro-authorized fan fiction. With the addition of photographs from the private collection of Tommy Wyckoff, this book is a must-have for toy collectors and a chance for long-time G.I. Joe fans to recapture their favorite memories.




Mastering Go


Book Description

Master key features of Go, including advanced concepts like concurrency and working with JSON, to create and optimize real-world services, network servers, and clients Key FeaturesThis third edition of the bestselling guide to advanced Go programming has been overhauled and expanded to cover RESTful servers, the WebSocket protocol, and Go genericsUse real-world exercises to build high-performance network servers and powerful command line utilitiesPacked with practical examples and utilities to apply to your own development work and administrative tasksGet clear explanations about Go nuances and features to simplify Go developmentBook Description Mastering Go is the essential guide to putting Go to work on real production systems. This freshly updated third edition includes topics like creating RESTful servers and clients, understanding Go generics, and developing gRPC servers and clients. Mastering Go was written for programmers who want to explore the capabilities of Go in practice. As you work your way through the chapters, you'll gain confidence and a deep understanding of advanced Go concepts, including concurrency and the operation of the Go Garbage Collector, using Go with Docker, writing powerful command-line utilities, working with JavaScript Object Notation (JSON) data, and interacting with databases. You'll also improve your understanding of Go internals to optimize Go code and use data types and data structures in new and unexpected ways. This essential Go programming book will also take you through the nuances and idioms of Go with exercises and resources to fully embed your newly acquired knowledge. With the help of Mastering Go, you'll become an expert Go programmer by building Go systems and implementing advanced Go techniques in your projects. What you will learnUse Go in productionWrite reliable, high-performance concurrent codeManipulate data structures including slices, arrays, maps, and pointersDevelop reusable packages with reflection and interfacesBecome familiar with generics for effective Go programmingCreate concurrent RESTful servers, and build gRPC clients and serversDefine Go structures for working with JSON dataWho this book is for You'll need to know the basics of Go before you get started with this book, but beyond that, anyone can sink their teeth into it. It's written primarily for Go programmers who have a bit of experience with the language and want to become expert practitioners.




The Ultimate Guide to G.I. Joe 1982-1994


Book Description

This guide to the guts-and-glory of G.I. Joe identifies every figure with all its weapons and gear, every vehicle with all the easy-to-lose pieces and every accessory related to Hasbros stellar team of soldiers. Use The Ultimate Guide to G.I. Joe to expand your knowledge about Joe and the team, or Cobra and his cronies, and to identify and assess the value of any of the series 350 action figures and 240 vehicles and accessories.




Build an Orchestrator in Go (From Scratch)


Book Description

Develop a deep understanding of Kubernetes and other orchestration systems by building your own with Go and the Docker API. Orchestration systems like Kubernetes can seem like a black box: you deploy to the cloud and it magically handles everything you need. That might seem perfect—until something goes wrong and you don’t know how to find and fix your problems. Build an Orchestrator in Go (From Scratch) reveals the inner workings of orchestration frameworks by guiding you through creating your own. In Build an Orchestrator in Go (From Scratch) you will learn how to: Identify the components that make up any orchestration system Schedule containers on to worker nodes Start and stop containers using the Docker API Manage a cluster of worker nodes using a simple API Work with algorithms pioneered by Google’s Borg Demystify orchestration systems like Kubernetes and Nomad Build an Orchestrator in Go (From Scratch) explains each stage of creating an orchestrator with diagrams, step-by-step instructions, and detailed Go code samples. Don’t worry if you’re not a Go expert. The book’s code is optimized for simplicity and readability, and its key concepts are easy to implement in any language. You’ll learn the foundational principles of these frameworks, and even how to manage your orchestrator with a command line interface. About the technology Orchestration frameworks like Kubernetes and Nomad radically simplify managing containerized applications. Building an orchestrator from the ground up gives you deep insight into deploying and scaling containers, clusters, pods, and other components of modern distributed systems. This book guides you step by step as you create your own orchestrator—from scratch. About the book Build an Orchestrator in Go (From Scratch) gives you an inside-out perspective on orchestration frameworks and the low-level operation of distributed containerized applications. It takes you on a fascinating journey building a simple-but-useful orchestrator using the Docker API and Go SDK. As you go, you’ll get a guru-level understanding of Kubernetes, along with a pattern you can follow when you need to create your own custom orchestration solutions. What's inside Schedule containers on worker nodes Start and stop containers using the Docker API Manage a cluster of worker nodes using a simple API Work with algorithms pioneered by Google’s Borg About the reader For software engineers, operations professionals, and SREs. This book’s simple Go code is accessible to all programmers. About the author Tim Boring has 20+ years of experience in software engineering. For most of that time he has worked with orchestration systems, including Borg, Kubernetes, and Nomad. Table of Contents PART 1 INTRODUCTION 1 What is an orchestrator? 2 From mental model to skeleton code 3 Hanging some flesh on the task skeleton PART 2 WORKER 4 Workers of the Cube, unite! 5 An API for the worker 6 Metrics PART 3 MANAGER 7 The manager enters the room 8 An API for the manager 9 What could possibly go wrong? PART 4 REFACTORINGS 10 Implementing a more sophisticated scheduler 11 Implementing persistent storage for tasks PART 5 CLI 12 Building a command-line interface 13 Now what?




Terrorism in Youth Popular Culture


Book Description

As an integral part of the modern West, terrorism features prominently in the news, in film and television, even in video games and books. Packaged for public consumption, representations of terrorism and terrorists offer attempts to make sense of the contemporary experience. While terrorism is often treated as a topic of concern for mature audiences, this book focuses on media that are aimed at children and young adults. The contributors investigate the way terrorism is portrayed in movies, television shows, literature, games, and other popular culture formats aimed at these younger audiences, focusing particularly on the impact these portrayals have on these audiences as future decision-makers.




Cloud Native Go


Book Description

What do Docker, Kubernetes, and Prometheus have in common? All of these cloud native technologies are written in the Go programming language. This practical book shows you how to use Go's strengths to develop cloud native services that are scalable and resilient, even in an unpredictable environment. You'll explore the composition and construction of these applications, from lower-level features of Go to mid-level design patterns to high-level architectural considerations. Each chapter builds on the lessons of the last, walking intermediate to advanced developers through Go to construct a simple but fully featured distributed key-value store. You'll learn best practices for adopting Go as your development language for solving cloud native management and deployment issues. Learn how cloud native applications differ from other software architectures Understand how Go can solve the challenges of designing scalable distributed services Leverage Go's lower-level features, such as channels and goroutines, to implement a reliable cloud native service Explore what "service reliability" is and what it has to do with cloud native Apply a variety of patterns, abstractions, and tooling to build and manage complex distributed systems







The NES Encyclopedia


Book Description

A comprehensive, colorful guide to every game ever released on the classic Nintendo Entertainment System. One of the most iconic video game systems, the NES is credited with saving the American video games industry in the early 1980s. The NES Encyclopedia is the first ever complete reference guide to every game released on the Nintendo Entertainment System, Nintendo’s first industry-defining video game system. As well as covering all 714 officially licensed NES games, the book also includes more than 160 unlicensed games released during its lifespan, giving for the first time a definitive history of this important console's full library. Written by a retro gaming expert with 30 years of gaming experience and a penchant for bad jokes, TheNES Encyclopedia promises to be both informative and entertaining. The NES continues to enjoy a strong cult following among Nintendo fans and gamers in general with wide varieties of officially licensed merchandise proving ever popular. Nintendo’s most recent console, the Switch, is the fastest selling video game console of all time in the United States and Japan. Nintendo launched a variety of classic NES games for download on the system, meaning a new audience of gamers is due to discover the NES for the first time if they have not already. Praise for The NES Encyclopedia “As a catalog of all 876 NES games, this work is unique in its breadth of coverage and will be of great interest to old-school video gamers and collectors.” —Booklist “A definitive resource that is more than worthy of the title ‘Encyclopedia.’ ” —Nintendo World Report




Go Programming - From Beginner to Professional


Book Description

Harness the power of Go through hands-on coding examples, covering basic to advanced topics like modules, database interfacing, RESTful APIs, concurrency, and beyond Key Features Leverage Go's standard library through practical examples and simplify development tasks using best practices Master effective idiomatic Go syntax, including variables, functions, and loops, to handle data Build fully functional web applications with capabilities such as database connectivity and RESTful API creation Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionGo Programming – From Beginner to Professional is a comprehensive guide that takes your proficiency in the Go programming language from novice to expert. Starting with fundamental concepts, this book covers variables, command-line tools, and working with data before delving into advanced concepts, including error handling, interfaces, and generics, harnessing Go’s latest features through hands-on exercises. Along the way, you’ll learn to structure projects using Go modules, manage packages effectively, and master debugging techniques. As you progress, you’ll get to grips with practical application-centric aspects such as command-line programming, file manipulation, and working with SQL databases. Additionally, the book explores web server development, RESTful APIs, and utilizing the Go HTTP client to interact with web applications. Further enhancing your Go skills, you’ll learn concurrent programming, testing methodologies, Go tools, and how to deploy applications in the cloud. Throughout the book, you’ll uncover Go’s hidden gems and gain insights into time manipulation, best practices, and more. By the end of this book, you’ll have worked through practical exercises and activities that’ll equip you with the knowledge and skills needed to excel as a proficient Go developer, primed for success in real-world projects.What you will learn Understand the Go syntax and apply it proficiently to handle data and write functions Debug your Go code to troubleshoot development problems Safely handle errors and recover from panics Implement polymorphism using interfaces and gain insight into generics Work with files and connect to popular external databases Create an HTTP client and server and work with a RESTful web API Use concurrency to design efficient software Use Go tools to simplify development and improve your code Who this book is for Designed for both complete beginners in Go as well as professionals transitioning from another programming language, this book equips developers with skills needed to build real-world projects and launch their career in Go. With a step-by-step approach, beginners can grasp Go fundamentals even without prior programming experience, and gradually advance to idiomatic Go best practices, exploring the latest features of the language.