Harness the power of Go through hands-on coding examples, covering basic to advanced topics like modules, database interfacing, RESTful APIs, concurrency, and beyondKey FeaturesLeverage Go's standard library through practical examples and simplify development tasks using best practicesMaster effective idiomatic Go syntax, including variables, functions, and loops, to handle dataBuild fully functional web applications with capabilities such as database connectivity and RESTful API creationPurchase of the print or Kindle book includes a free PDF eBookBook 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 learnUnderstand the Go syntax and apply it proficiently to handle data and write functionsDebug your Go code to troubleshoot development problemsSafely handle errors and recover from panicsImplement polymorphism using interfaces and gain insight into genericsWork with files and connect to popular external databasesCreate an HTTP client and server and work with a RESTful web APIUse concurrency to design efficient softwareUse Go tools to simplify development and improve your codeWho this book is forDesigned 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.
Table of ContentsVery Valuable VariablesCommand and ControlData Rules!Get It Together with Complex TypesReduce, Reuse, RecycleDon't Panic! Handle Your ErrorsGet Flexible with InterfacesGeneric Algorithm SuperpowersUse Go Modules to Define a ProjectPackages Keep Projects ManageableBug Busting Debugging SkillsAbout TimeProgramming for the Command-LineFiles and SystemsSQL and DatabasesWeb ServersUsing the Go HTTP ClientConcurrent WorkTestingUsing Go ToolsGo in the Cloud. .