Taylor Browndumpster.hashnode.dev·15 minutes agoUsing Interfaces in GoLearning how to use interfaces in Go will help you write flexible and simpler code. When I was first learning Go I found the posts about interfaces to be lacking. The examples weren't practical (Stringer, Geometry, Animal - these posts are great, but...Discussgolang
Taylor Browndumpster.hashnode.dev·an hour agoUnit-like testing your database with Docker in GoYesterday I responded to a thread on Reddit where a user asked how people test their database interactions. There are a lot of different ways to do this and after explaining what I did there was interest in an example, so this will be the example :) ...Discussgolang
unidoclibunidoclib.hashnode.dev·Sep 22, 2023Unlock the Secrets of Airplane Ticket Design with GolangWe have an exciting learning opportunity for Golang enthusiasts and tech enthusiasts alike! 🚀 Topic: Discover the Art of Airplane Ticket Design with Golang & UniDoc. Date: September 26th (Tuesday) Time: 3:00 PM GMT Register Now: Join the Webinar In ...Discussgolang
Shreya Trivediintelops.hashnode.dev·Sep 22, 2023The Hype Around GoGo (often referred to as GoLang) has gained massive popularity recently, with prominent users such as Google, Netflix, and Uber, along with a thriving open-source developer community. In the second quarter of 2023, Go achieved the remarkable rank of ...Discuss·41 readsgolang
Redha Bayu Anggararedhabayuanggara.hashnode.dev·Sep 22, 2023role-based vs. attribute-based authorization? (in Golang)Role-based authorization Role-based authorization (RBAC) is a model where for defining a set of roles, such as admin, manager, or customer, and assign them to users. Each role has a predefined set of permissions, such as create, read, update, or dele...Discussgolang
Frankie Murillofrankiemurillo.hashnode.dev·Sep 21, 2023Learning Go (& Routers) Part 1Introduction Hey everyone, just began learning Go and wanted to create my first URL Shortener! It was very fun and also challenging! I learned many things along the way and would like to share a few of my learnings with you all. Hopefully, it helps s...Discuss·26 readsGo Language
Weiping Dingwpding.hashnode.dev·Sep 17, 2023Get Going: peek into sliceIn previous posts, I explored the unique design of Go error handling. This time I am moving to another part: Go slice. Similar to error handling, this data structure (essentially dynamic array) is something so common (JavaScript array, Python list et...Discussgolang
Aditya salunkheforAdiTechSavvys Blogs on Golangaditechsavvyblogs.hashnode.dev·Sep 15, 2023Mastering Gorilla WebSocketsIf you've ever wondered how to supercharge your web applications with real-time interactivity, you're in the right place, but Before we do that let us Understand What WebSockets The WebSocket Protocol : The WebSocket Protocol enables two-way communic...Discuss·2 likes·255 readswebsockets
Barisere Jonathanhumanlytyped.hashnode.dev·Sep 13, 2023Test Helper Function Guidelines for GoWhen writing unit tests, we often use functions and methods to factor our test suites into coherent parts for readability. To common parts we factor out are creation methods and custom assertions. We use creation methods to group setup logic into a l...DiscussSoftware Testinggolang
Thanh Phúc Huỳnhphucdev.hashnode.dev·Sep 12, 2023Managing Worker Pool State with Prometheus and Grafana in Go - not detailIn this article, we'll explore how to manage the state of jobs in a Worker Pool in Go while leveraging the power of Prometheus and Grafana for monitoring and visualization. Introduction Worker Pools are a common concurrency pattern used in software d...Discussgolang