How to Read from Standard Input in Golang
Reading from “standard input” is really useful if you are making a command-line application and require user input.
package main
import ( …
Read Article →
101 articles about go development, tools, and best practices
Reading from “standard input” is really useful if you are making a command-line application and require user input.
package main
import ( …
Read Article →
If you need to install Golang on WSL under Windows 10 or higher, you can follow these few steps.
sudo rm …
Read Article →
Create a function that repeats each character by the amount of it’s index value of the original string.
You are given two interior angles (in degrees) of a triangle.
Write a function to return the 3rd.
Note: only positive integers will be …
Read Article →In this challenge, your function receives an array of integers as input. Your task is to determine whether the numbers are in ascending …
Read Article →Given a string, capitalize the letters that occupy even indexes and odd indexes separately, and return as shown below. Index `` will be …
Read Article →Create a method IsUpperCase to see whether the string is ALL CAPS. For example:
type MyString string
MyString("c").IsUpperCase() …
Read Article →
In Go, there are multiple ways to make a string UpperCase, each of them are by using the strings package.
strings.ToUpper):func ToUpper(str …
Given a string of words, return the length of the shortest word(s).
The input string will never be empty and you do not need to account …
Read Article →Your goal is to return multiplication table for number that is always an integer from 1 to 10.
For example, a multiplication table …
Read Article →Remove the left-most duplicates from a list of integers and return the result.
// Remove the 3's at indices 0 and 3
// followed by …
Read Article →
All we eat is water and dry matter.
John bought potatoes: their weight is 100 kilograms. Potatoes contain water and dry matter.
The …
Read Article →