Bunwich
Wednesday, March 26, 2025
golang sorting maps by value and returning a slice of keys
›
Golang 1.23 Added new slices functions to help sort. These are useful for sorting maps by values or by keys. In my previous post I went thr...
Tuesday, March 25, 2025
Golang how to sort the keys in a map and create a new array
›
Golang maps are purposely unordered. If you add the values "b": 2 and "a": 1 to a map, iterating this will sometimes get...
Monday, November 25, 2024
Creating IAM Role and Assigning it to EC2 Instance requires four steps
›
locals { region = "us-west-2" owner = "<name>" ami = "ami-XXXXXX" } # Setup ECR Roles f...
Tuesday, October 1, 2024
Leetcode Binary Tree Array Format in Golang
›
In the Binary Tree section of leetcode, they provide an Input array with values used to create a binary tree. It isn't necessary to repr...
Monday, August 22, 2022
Setting up Express and Typescript August 2022
›
To learn express and typescript, I wanted to convert the default express skeleton app into a typescript one. This uses the tutorial link bel...
Sunday, November 17, 2019
Fedora 30 Add another port for ssh'ing to get around some wifi filters
›
Some ISP's that offer free wifi will not allow you to ssh. To get around this you can set your ssh server to use another port like 8080....
Saturday, August 17, 2019
Create an interface array consisting of a generic struct type in golang
›
I was looking at how to get a result set from a golang sql query. It seemed that a lot of the examples explicitly defined the fields or decl...
›
Home
View web version