Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 200
  1. Building a web server is one of the best first projects when learning a new language — it touches routing, request handling, and the standard library all at once.

  2. Welcome to the final part of the series!

  3. In the previous tutorial, we added rate limiting to protect our backends from abuse.

  4. Part 4 - Rate Limiting

    In the previous tutorial, we built a middleware pipeline with logging, CORS, and header injection.

  5. Part 3 - Middleware Pipeline

    In the previous tutorial, we added routing to our gateway.

  6. In the previous tutorial, we built a basic reverse proxy that forwards all requests to a single backend server.

  7. Welcome to the first part of this series on building an API gateway in Rust!

  8. Removing an element from a slice in Go requires creating a new slice that excludes the element at the specified index.

  9. Regular expressions in Go are handled by the regexp package, which provides powerful pattern matching capabilities.

  10. Reading and Writing Files in Go

    Go provides simple and efficient ways to read and write files using the os package.

  11. Go allows you to define methods on both pointer and value receivers.

  12. Nil checking in Go is straightforward for pointers and simple types, but interfaces introduce a subtle gotcha.

  13. Merging Two Maps in Go

    Merging maps is a common operation when working with configuration data, combining results from multiple sources, or aggregating information.

  14. Mapping over slice elements allows you to transform each element in a slice and collect the results into a new slice.

  15. When working with APIs, you often need to send custom headers for authentication, content negotiation, or other purposes.

  16. The os.ReadDir function provides an efficient way to list the contents of a directory in Go.

  17. Maps in Go are unordered collections, meaning iteration order is random and non-deterministic.

  18. Query parameters are a fundamental part of HTTP requests and Go makes it easy to extract and work with them.

  19. The os.Stat function returns a FileInfo interface that provides comprehensive metadata about a file or directory.

  20. Finding the index of an element in a slice is a common task in Go programming.

  21. Filtering Slice Elements in Go

    Filtering a slice to extract only elements that meet certain criteria is a fundamental operation in Go.

  22. The fan-out fan-in pattern is a Go concurrency technique where you distribute work across multiple goroutines (fan-out) and then collect their results back into a single channel (fan-in).

  23. Extracting a Substring in Go

    In Go, you can extract substrings using slice notation with the syntax string[start:end], where start is inclusive and end is exclusive.

  24. Go provides two different built-in functions for memory allocation: make() and new().

  25. Deep Copying Structs in Go

    Deep copying is important when you need to ensure that modifications to a copied struct do not affect the original.

  26. Custom marshaling allows you to control how your types are converted to and from JSON.

  27. Creating HTTP Middleware in Go

    Middleware in Go is implemented by wrapping handler functions or multiplexers.

  28. Counting occurrences of items is a fundamental pattern in data processing and analysis.

  29. Checking whether a slice contains a specific element is a common operation in Go.

  30. Checking whether a file or directory exists is a common operation in Go programs.

  31. Parsing JSON files With Go

    Welcome all, in this tutorial, we are going to be taking a look at how you can read in JSON files, or JSON HTTP responses and parse them to your hearts desire.

  32. 🚀 My new course - The Golang Testing Bible is out now and covers everything you need to get up and running creating tests for your Go applications!

  33. Go Channels Tutorial

    In this tutorial, we are going to be looking at how you can use channels within your Go-based applications.

  34. Creating a RESTful API With Go

    If you are writing any form of web application, then you are most likely interfacing with 1 or more REST APIs in order to populate the dynamic parts of your application and to perform tasks such as updating or deleting data within a database.

  35. Reading in Console Input in Go

    This is a quick and simple tutorial on how to read in console text input into your Go (GoLang) program.

  36. Last Updated - 7th March, 2026 In this tutorial, we are going to be taking a look at the os/exec package in the standard library and how we can use this to successfully execute system commands within our Go applications.

  37. The latest Go releases are absolutely stuffed with a number of fantastic new features, one of which, is the ability to significantly improve the performance of the hot paths within your applications using something called Profile Guided Optimizations.

  38. Welcome Gophers!

  39. Making HTTP requests in Go

    Welcome Gophers!

  40. Note - For a tutorial on how to build a RESTful API in Go, click here.

  41. The Go init Function

    There are times, when creating applications in Go, that you need to be able to set up some form of state on the initial startup of your program.

  42. In the previous video in this course, we looked at how we could implement the transport package.

  43. So now that we’ve defined our comment service interface, let’s set about actually implementing the methods that we’ve defined.

  44. In this video, we’ll be defining the HTTP endpoints that are effectively going to expose the our comment service.

  45. Now that our Postgres DB is up and running, we now have to implement the package that we’ll use to communicate to this database.

  46. Handling JSON

    Now, at present we don’t currently handle JSON and we don’t return JSON from our API, so it’s not exactly what you would call a JSON REST API just yet.

  47. Defining the Comment Service

    Now that we have our database setup, we have everything we need to start implementing our comment service and build it in a test-driven way.

  48. So, we have our basic app structure defined, let’s start looking at how we can build out the server aspect and start serving some basic endpoints.

  49. We’ll start off our journey setting up a locally running instance of RabbitMQ that we can connect to and base our learnings off for now.

  50. Welcome Gophers!