Hands-On High Performance with Go by Bob Strecansky

Hands-On High Performance with Go by Bob Strecansky

Author:Bob Strecansky [Bob Strecansky]
Language: eng
Format: epub
Tags: COM051000 - COMPUTERS / Programming / General, COM051220 - COMPUTERS / Programming / Parallel, COM051300 - COMPUTERS / Programming / Algorithms
Publisher: Packt
Published: 2020-03-24T10:55:00+00:00


var SerialNumber = "unlicensed"

func main() {

if SerialNumber == "ABC123" {

fmt.Println("Valid Serial Number!")

} else {

fmt.Println("Invalid Serial Number")

}

}

As shown in the preceding output, if we attempt to execute this program while not passing in a serial number, the program will tell us that our serial number is invalid:

If we pass in an incorrect serial number, we will get the same result:

If we pass in the correct serial number, our program will tell us that we have a valid serial number:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.