
Build AWS Lambda Hello World Application in Golang in less than 5 minutes.
Build and deploy AWS Lambda Hello World Application in Golang in less than 5 minutes.
· 1 min read
GO TUTORIAL
Go is a simple, fast language built at Google for cloud services, CLIs and concurrent programs. Start with the articles below, then try the example program.

Build and deploy AWS Lambda Hello World Application in Golang in less than 5 minutes.
· 1 min read

Introduction to Go program languages, What? Why? and History
· 1 min read
A number is an Armstrong number when the sum of the cubes of its digits equals the number itself — for example153 = 1³ + 5³ + 3³. This program reads a number, peels off each digit with% 10 and / 10, and checks the sum.
Try it in the Go Playground.
// Check whether a number is an Armstrong number.
// A positive integer is an Armstrong number of order n if the sum of
// the nth powers of its digits equals the number: 153 = 1³ + 5³ + 3³.
package main
import "fmt"
func main() {
var number int
fmt.Print("Enter any three digit number: ")
fmt.Scan(&number)
checkArmstrongNumber(number)
}
func checkArmstrongNumber(number int) {
var remainder, result int
tempNumber := number
for tempNumber != 0 {
remainder = tempNumber % 10 // last digit, e.g. 3 for 153
result += remainder * remainder * remainder
tempNumber /= 10 // drop the last digit
}
if result == number {
fmt.Printf("Number %d is an Armstrong number.\n", number)
} else {
fmt.Printf("Number %d is not an Armstrong number.\n", number)
}
}
// $ go run check_armstrong.go
// Enter any three digit number: 153
// Number 153 is an Armstrong number.Topics planned for this tutorial.