
Go Function Programs with Output: Variadic, Closures, Defer
Go function programs show how to break code into small, reusable pieces, which is the first step from short scripts to real applications. In…
Tag

Go function programs show how to break code into small, reusable pieces, which is the first step from short scripts to real applications. In…

Go matrix programs work with rows and columns of numbers, like a spreadsheet, a game board or the pixels of an image. In this…

Go map programs store data as key-value pairs, such as a product code and its price or a word and how often it appears.…

Go searching programs find a value in a collection, such as an order ID in a list or a word in a dictionary. In…

Go sorting programs put data in order, such as products by price, students by marks or names from A to Z. In this post,…

Go slice programs work with lists that can grow and shrink, which is how Go stores almost every collection, from cart items to log…

Go array programs work with a fixed-size list of values, such as the marks of five subjects or the sales of seven days. They…

Go string manipulation means changing or analysing text in smart ways, such as finding anagrams, removing duplicate letters or compressing “aaabb” into “a3b2”. These…

Go string programs are among the most asked coding questions, because almost every app works with text such as names, messages and search words.…

Go switch programs choose one path out of many, which makes them perfect for menus, calculators and day names. In this post, you will…