A somewhat curated list of links to various topics in application security.


Top Golang FrameworkGo was created by Google about ten years ago when they were experiencing extremely long wait times for C++ to compile. Since this created a bottleneck, they decided to find a solution which was an entirely new programming language.
1 min guide to Golang development best practices in 20221. Use Go Modules — It is go’s a dependency management system, that makes dependency version information simple, explicit, and easy to manage. From this article, you can start using go modules in your application. 2. Use Gin — Gin is widely used for building web APIs and microservices.
Progress Bar With GoFollowing tutorial is intended for anyone who are curious about the beauty of the APT progress bar; also includes the people who still use the command line.
Offensive GoLangOffensive GoLang is is a collection of Go packages containing commonly used cyber adversary emulation functions. Offensive GoLang accomplishes nothing by itself; rather, it is intended to support rapid red team tool development by providing common functions in a modular format.
Secure Coding with GoGoogle Go (also known as Golang) continues its role as a popular software language that enables developers to ship quality code at a rapid pace.
Go security cheatsheet: 8 security best practices for Go developersIn this installment of our cheatsheet series, we’re going to cover eight Go security best practices for Go developers.
Decorator Pattern in GoThis is the third chapter of the “Head First Design Patterns” book. I have covered the Strategy and Observer patterns before. We are told to design an ordering application at a coffee shop. It sells a variety of beverages like
WebSocket communication between two Go programs, the easy wayThis article was written with one idea in mind: to show you, how to make a communication between two Go programs, using WebSockets. The simplest possible way.
The Only Introduction to Golang You NeedGo, or also called Golang, is absolutely trendy, and rightly so. It is not as difficult to learn as C or C++, but still quite fast, and has a great community & many interesting and helpful packages and libraries.
Go WasmGo Wasm is a Go development environment with the essentials to write and run code entirely within the browser, using the power of WebAssembly (Wasm). Want to discuss an idea or a bug? Open up a new issue and we can talk about it. Pull requests are welcome.
How to Write Bug-Free Goroutines in Go (Golang)Go is well-known and loved for its concurrency. The go runtime manages lightweight threads called goroutines. Goroutines are quick and simple to write. You just type go before the function you want to execute asynchronously, in another thread.
Creating an Authentication API with Golang — Using Gin & NrokYou will need to have Go installed on your machine, which you can download for free over here. To get started, we create a new project. Create a new file called main.go and enter the following starter code:
Your Master Plan to Learn Golang Fast and Deep (2021 Edition)If you must (or like to) learn Go (Golang), this article will point you in the right direction. If you are still unsure, should you learn Go or another language, let me tell you a few facts and stats to help you make the right decision.
Closures Made Simple With GolangIn Golang, a closure is a function value that references variables outside its own function body. A closure can outlive the scope in which it was created and thus access variables within that scope, even though the scope is exited.
roxyOur mascot, Roxy Lalonde. See our GitHub Pages site for more documentation.
tdewolff/canvasCanvas is a common vector drawing target that can output SVG, PDF, EPS, raster images (PNG, JPG, GIF, ...), HTML Canvas through WASM, OpenGL, and Gio. It has a wide range of path manipulation functionality such as flattening, stroking and dashing implemented.
jakubDoka/mlokSkip to content Sign up Sign up Sign in Sign up Sign up {{ message }} Permalink main mlok/examples/basics/hasher/main.go /Jump to Go to file jakubDoka adding boid demo Latest commit 84de7b1 Mar 30, 2021 History 1 contributor You can’t perform that action at this time.
Retraction: My Go Executable Files Are Still Large (What's New in 2021)In 2019, we published an exploration of the size and makeup of the executable files produced by the Go compiler. CockroachDB engineers, the Go team, and the greater Go community were intrigued by the analysis, and the results of it pushed our projects further.
The Backend Development Engine built for GoEncore makes it super easy to create backend services and APIs. Built ground up for Go, Encore uses static analysis and code generation to provide a revolutionary developer experience that is extremely productive. No Boilerplate: Set up a production ready backend application in minutes.
What's the "sync.Cond" | dtyler.ioGo’s sync.Cond is a synchronization primitive for multithreaded (goroutine, to be precise) programming. Compared to mutexes, sync.Cond has limited use cases, and its usage seems to be rather complicated. Also, I don’t see enough explanations or examples of it.
How to set up Vim for Go DevelopmentOne of the major reasons I love programming in Go is that I can do it in any IDE or editor I want, including my favourite Vim editor.
gopsgops gops is a command to list and diagnose Go processes currently running on your system.$ gops 983 980 uplink-soecks go1.9 /usr/local/bin/uplink-soecks 52697 52695 gops go1.10 /Users/jbd/bin/gops 4132 4130 foops * go1.9 /Users/jbd/bin/foops 51130 51128 gocode go1.9.
progressbarA very simple thread-safe progress bar which should work on every OS without problems. I needed a progressbar for croc and everything I tried had problems, so I made another one. In order to be OS agnostic I do not plan to support multi-line outputs. The progressbar implements an io.
Google’s Golang — The Perfect Solution to Super-fast BuildingFrom the large variety of programming languages, you can always find the right one that will be the most helpful for solving some specific task you come upon with. In this article, you will learn about the basics of the Go programming language, which is primarily developed at Google.
Different ways to send an email with GolangIn this blog, we’ll look at different methods to send an email with Go, First, we will explore inbuilt smtp package, then we will move to use a popular package Gomail and finally, we will send HTML emails using custom templates. smtp is an inbuilt package provided with Golang.
Why Go has become my favourite language for almost anythingA couple of years ago at work I was tasked to build the software of an IoT thing. The program had to run on a development board with an ARM Linux distribution and I had complete control on how to structure the project.
Automate Your Go Applications With Gradle & DockerThere’s a consistent demand for speed and efficiency when developing software solutions. Not only do your applications need to compile flawlessly, but today’s modern tech space has forced the “it works on my machine” phrase to become a vulgarity.
20 Go Packages You Can Use in Your Next ProjectGo is an amazing language that you can use to build almost any kind of program. Developed in 2007, it has the ease of an interpreted language while also being fast and efficient as a compiled language. It was also built thinking about concurrency and getting advantage of the multicore machines.
Rust vs. Go: Why They’re Better TogetherSteve Francia Over the past 25 years Steve Francia has built some of the most innovative and successful technologies and companies which have become the foundation of cloud computing, embraced by enterprises and developers all over the world.
How To Become a Golang Developer: A 6-Step Career GuideGolang (also called Go) is an in-demand programming language — especially for people working with Google products. Go is used by many big companies, like Uber, Medium, Dropbox, Salesforce, Netflix, IBM, and Twitter. Go is a great option for job seekers of all levels.
Go for Java Devs — Pointers, Error Handling, and ConcurrencyIn this series’ first article, I described myself as a long-time Java engineer who has recently decided to give Go a go. Although I’ll always love Java, I know that it’s important to keep learning languages.
GopherCon 2020: Jaana Dogan - Debugging Code Generation in GoHave you ever tried to understand how the Go toolchain takes your source code and generates a binary? Have you ever wondered how you can inspect machine code generated from Go source code? Or, have you ever optimized some Go code to later realize Go compiler is already doing the same optimization au
(Pre-Launch) Build a Twitter clone GraphQL API using GolangHello everyone :) My name is Emanuel I’m from Québec Canada. I’ve started working on a videos course with Golang where I show you how to build a twitter clone in graphql.
Just released go-reddit v1.0.0, a Go library for accessing the Reddit APIWorks well, thank you! Glad to hear! Thank you for trying it out.
Rust vs. Go: Why They’re Better TogetherSteve Francia Over the past 25 years Steve Francia has built some of the most innovative and successful technologies and companies which have become the foundation of cloud computing, embraced by enterprises and developers all over the world.
How To Crack the Top 25 Golang Interview QuestionsThe Go programming language, or Golang, is an open source programming language similar to C but optimized for quick compiling, seamless concurrency, and developer ease of use.
The Decorator Pattern In GoThe final product is oddly satisfying. The Decorator pattern is an incredibly useful and flexible technique to create forward-thinking code. It allows you to add functionality to an object dynamically at run time instead of compile time.
3 Concurrent Patterns Used in GolangWhen a program or an algorithm is concurrent, it means that it is designed to be decomposed into smaller parts that will be executed in independent processes in parallel. In other words, as Rob Pike said: Concurrency has a lot to do with the design of your program.
How To Build a Basic Blockchain in GoBlockchain technologies have been referenced by some as the most influential invention since the internet itself. While the public interprets blockchain synonymously with speculative cryptocurrencies, blockchain actually has an incredibly broad range of applications for the modern world.
Go for Java Devs — The BasicsAs someone who’s programmed in Java for almost as long as the language has existed, I’ll always consider myself a “Java guy”.
Coding Problem: Sorted Squared Array in GoLearn two solutions and write table-driven tests! I believe it’s a good practice for software engineers to practice coding interview problems on a routine basis.
Automate Your Go Applications With Gradle & DockerThere’s a consistent demand for speed and efficiency when developing software solutions. Not only do your applications need to compile flawlessly, but today’s modern tech space has forced the “it works on my machine” phrase to become a vulgarity.
Practical Go Lessons
Build a Web Crawler in GoOne of the basic tests I use to try out a new programming language is building a web crawler.
Creating a web crawler in Go with CollyWeb scraping is a technique that lets you inspect, parse, and extract data from websites that would have otherwise been difficult to access due to the lack of a dedicated API.
Develop a Large-scale Concurrent URLs Scraper in GoThis semester I participated in a course on network data mining, which includes a crawler-related project that had much room for technical play, and I think it is worth writing an article to share.
💻 PTerm | Pretty Terminal PrinterTo make PTerm available in your project, you can run the following command. Make sure to run this command inside your project, when you're using go modules 😉
Coding Problem: First Non-Repeating Character in GoThis article is part of my personal habit of writing coding problems in with my most relevant language to stay sharp on my programming and problem solving skills. The First Non-Repeating Character question is a well-known beginner computer science question.
How I create small Go apps quicklyI often want to create a small web application to test out an idea or demonstrate some thing, and I’ve developed a small toolbox that helps me do so in Go.
Building a BitTorrent client from the ground up in GoThis post is also available in Russian, Korean, and Chinese. BitTorrent is a protocol for downloading and distributing files across the Internet.
Go: Using a Closure in Place of a StructThis note isn’t suggesting a pattern to follow, it’s a thought exercise. Let’s look at using a closure where we’d idiomatically use a struct. For this thought exercise, we will implement a Fibonacci Number sequence generator two ways, once with a struct and once with a closure.
go-internalsClick here for the GitBook version. All kinds of contributions are very much welcome.
50 Shades of Go: Traps, Gotchas, and Common Mistakes for New Golang DevsGo is a simple and fun language, but, like any other language, it has a few gotchas... Many of those gotchas are not entirely Go's fault. Some of these mistakes are natural traps if you are coming from another language. Others are due to faulty assumptions and missing details.
Bitcoin HD Wallet with Golang and gRPC (Part l)In this tutorial series, we are going to learn how to create an HD bitcoin wallet using Golang. The idea of the tutorial series is not only showing how to create the Wallet and getting balances but also how to implement a grpc server and a CLI tool and a web-app for consuming it.
Go: The Idea Behind Sync.PoolI encountered a problem in Go Garbage Collection inside a project of mine recently. A massive amount of object were allocated repeatedly and caused a huge workload of GC. Using sync.Pool I was able to decrease the allocations and GC workload. One of the highlights of Go 1.3 release was sync Pool.
How I build web frontends in GoGo is a great language for building all kinds of backend services like APIs or microservices and many people use it for that. But what about web frontends, specifically dynamically rendered web applications? Let’s have a look…
Collaborative form editor using WebSockets | Web Sockets in Golang and ReactWant real-time communication across clients and asynchronously handle every incoming event across client modules and broadcast it to multiple registered services without long polling for the data? Want to create a chatting application? Websockets might just be your best friend for this particular us
"go get" command · golang-101-hacks"go get" command "go get" command is the standard way of downloading and installing packages and related dependencies, and let's check the particulars of it through an example: (1) Create a playstack repository in github; (2) There is a LICENSE file and play directory in playstack folder; (3) The pl
5 Common mistakes in GoBug-risks are issues in code that can cause errors and breakages in production. A bug is a flaw in the code that produces undesired or incorrect results.
generativeartgenerativeart is a Go package to generate many kinds of generative art. The goal is to collect some excellent generative art (implemented in R or Processing), and rewrite them in Go again.
Go: What Does a Goroutine Switch Actually Involve?Goroutines are light; they just need a memory stack of 2Kb to run. They are also cheap to run; switching a goroutine to another one does not require many operations. Before jumping into the switch itself, let’s review how the switch works at a higher level.
Finding Evil Go PackagesBecause of the big SolarWinds hack and the recent blog post describing a new Dependency Confusion attack, there has been a lot of talk lately about supply chain attacks, the sneaky technique of compromising less secure elements in a supply chain to compromise more secure targets.
Golang JSON Gotchas That Drove Me Crazy But I Have Learned to Deal WithJSON is JSON, it's everywhere, and if you're working with Go you're most probably doing tons of JSON marshalling and unmarshalling.
Go Data Structures: InterfacesGo's interfaces—static, checked at compile time, dynamic when asked for—are, for me, the most exciting part of Go from a language design point of view. If I could export one feature of Go into other languages, it would be interfaces.
The Laws of ReflectionReflection in computing is the ability of a program to examine its own structure, particularly through types; it's a form of metaprogramming. It's also a great source of confusion. In this article we attempt to clarify things by explaining how reflection works in Go.
ConstantsGo is a statically typed language that does not permit operations that mix numeric types. You can't add a float64 to an int, or even an int32 to an int. Yet it is legal to write 1e6*time.Second or math.Exp(1) or even 1<<('\t'+2.0).
Strings, bytes, runes and characters in GoThe previous blog post explained how slices work in Go, using a number of examples to illustrate the mechanism behind their implementation. Building on that background, this post discusses strings in Go.
Go Slices: usage and internalsGo's slice type provides a convenient and efficient means of working with sequences of typed data. Slices are analogous to arrays in other languages, but have some unusual properties. This article will look at what slices are and how they are used.
Golang Internals ResourcesThis is a curated collection of Articles and Videos about Golang internals. It is intended for advanced/intermediate programmers who are new to Golang and want to understand what happens under the hood. Feel free to add to it! How does the golang scheduler work? by Ian Lance Taylor
How to learn internals of the Go Programming Language? For noobRecently I've participated several Go job interviews. The first one asked me How is channel implemented?, then the second one asked How is goroutine implemented?. Well as you can guess, the next one asked How is a Go interface implemented?.
Golang app in a container with hot reload and dynamic local packageA good way to develop Go applications is to use a Docker container to run them. In addition, having hot reloading is a useful feature to save time and directly see code updates.
go seof: Simple Encrypted os.FileEncrypted drop-in replacement of golang' os.File, the file stored will have 768 bits of encryption (Triple AES256 -yes- very silly and very secure). The resulting type can be used anywhere an os.File could be used. i.e.
What’s new in Go 1.16Go 1.16, the 17th major version of the Go programming language, has just been released. It is a significant upgrade that brings lots of long-awaited features and refinements to the language.
Virtual Filesystem in Go - Creating the foundationHi all. I posted earlier this week about a virtual filesystem project I wanted to start on in Go. So, I wrote my first real technical writing on the actual implementation and was interested in feedback on my technical writing and my Go so far.
Golang's Interfaces explained with MocksWhen I was learning Golang, one of the concepts that took me the most time to grasp was Interfaces. Golang's Interfaces are a great way to make modular and testable code. But they can also be a bit confusing at first glance.
Preventing SQL injections in Go (and other vulnerabilities)Go has taken the programming world by storm. When it recently passed its ten-year anniversary, estimates suggested as many as 2 million people use the language. As that number continues to grow, common mistakes have emerged that can lead to bugs and security vulnerabilities.
How Buffer Pool Works: An Implementation In GoI have been exploring how disk-oriented databases efficiently move data in and out of disk. One way, that I explored in Discovering and exploring mmap using Go and But how, exactly, databases use mmap?, is through memory-mapped files. Although mmap is a really neat solution, it has some troubles.
My Ultimate Makefile for Golang ProjectsBut like with all other programming languages, you have to deal with a lot of tooling. To have easy access to these tools, I put everything in a makefile so I can build, lint, and run everything from a single place.
Writing an RPC server in GoHey fellow coders, in the last article we learned how to Write Fx Modules and added a logging module into our project. Continuing on the same codebase, we will add support for serving RPC requests. RPC stands for Remote Procedure Call.
Go 2 generics in 5 minutesThe inclusion or not of generics in the Go language has been a long-standing discussion and cause of drama since the first appearance of the language in 2009. Rivers of ink have been poured in long discussions about if generics are good or bad, and if the language needs to support them or not.
go101/go101Go 101 is a book focusing on Go syntax/semantics and all kinds of runtime related things. It tries to help gophers gain a deep and thorough understanding of Go. This book also collects many details of Go and in Go programming.
Go: How Does the Garbage Collector Mark the Memory?The Go garbage collector is responsible for collecting the memory that is not in use anymore. The implemented algorithm is a concurrent tri-color mark and sweep collector. In this article, we will see in detail the marking…
How to setup Golang with VSCodeI have used Golang some years ago, but unfortunately I hadn't tried to do it in a long time and had forgotten all about it.... So I set it up from the beginning with a fresh mind.😊 The environment I used is as follows. macOS Catalina 10.15.5 Visual Studio Code 1.46.
Structure size optimization in Golang (alignment/padding). More effective memory layout (linters).Today I would like to tell you about the alignment of structures in Golang. The capacity of the machines is growing every year. And our computing power allows us to perform increasingly demanding tasks.
Develop A Production Ready REST API in GoWelcome Gophers! In this course, we’ll be covering absolutely everything you need in order to get up and running developing Production-ready REST APIs using Go. Throughout this course, we’ll be looking at how you can build a Comment system for your own sites or projects.
Go Pointers: Why I Use Interfaces (in Go)Emphasis on I and in Go. If you’ve been coding for a while, I probably don’t need to explain all the obvious benefits of interfaces, but I’m going to take just a moment or two to level set before I dive into the more idiosyncratic reasons I use interfaces in Go.
Go: FinalizersGo runtime provides a method runtime.SetFinalizer that allows developers to attach a function to a variable that will be called when the garbage collector sees this variable as garbage ready to be collected since it became unreachable.
Go, HTTP handlers, panic, and deadlocksMaybe the scenario I'm going to describe is just a silly bug no seasoned Go developer would ever make, but it is what it is. I'm not an expert in Go but I do write code in this language from time to time.
Build a Website Using Only the Go Std LibraryThere are quite a few web frameworks available within the Go ecosystem. Yet the advice that is often stated is that the std lib net/http is more than capable and that it’s best to start with that library until you grow out of it.
wuzzInteractive cli tool for HTTP inspection. Note: golang >= 1.10 required.
Golang Tutorial 3 - Golang pointers explained, once and for allThis video is about pointers explained in #golang, along with some basic memory allocation concepts, stack and heap allocations and also how they relate to pointers. It is beginner friendly so I start explaining with the basic syntax, but if you are already familiar with the basics, skip to 04:30.
Extending GObjects From Go and Making Them Available to CWhen I first started writing my GStreamer bindings for go, I had never done C library bindings before. I had written small programs in C for fun, but most of my professional work was either Go, Python, or just pure BASH.
Using SSE in Go web serverStart with adding the right module, that has this functionality already built-in on the server side of program. We will use julienschmidt’s repository again, this time it is module from So add the new module and import it.
Golang for Beginners: A Simple Guide to Understanding Basic GoWe are living in an era where technology continues to emerge at a breakneck speed. As 21st century developers, it is crucial for us to learn new coding languages to keep pace with this rapid change as it increases our versatility, widens our competencies and brightens our career prospects.
GoLang: Building a Web ServerWhen you read the term web server, what pops up in your mind? Having worked on Java before I moved on to GoLang, the very first thing that comes to me is Spring and its complex configurations. So, here I welcome you to the world of GoLang where things are as simple as they can be.
My raw notes on Go — Best practices, concurrency, memory and beyondOver the last few months I’ve been doing some deeper research over some topics about Go that I found interesting and wanted to have a deeper knowledge about.
Decorating Go ErrorsGo is powerful and popular — projects such as Kubernetes were implemented in Go. One interesting property of Go is that its multi-value returns capability provides a different error handling approach than other programming languages.
Learning Golang in 24 HoursMalcolm Gladwell popularized the notion that it took 10,000 hours to achieve mastery in any skill. However, it came from a body of research on how much time the top performers of several fields spent in “deliberate training” to achieve their level of skill.