February 2018
Intermediate to advanced
340 pages
9h 43m
English
package main import ( "fmt" "strings" "unicode" ) const email = "ExamPle@domain.com" const name = "isaac newton" const upc = "upc" const i = "i" const snakeCase = "first_name" func main() { // For comparing the user input // sometimes it is better to // compare the input in a same // case. input := "Example@domain.com" input = strings.ToLower(input) emailToCompare := strings.ToLower(email) matches := input == emailToCompare fmt.Printf("Email matches: %t\n", matches) upcCode := strings.ToUpper(upc) fmt.Println("UPPER case: " + upcCode) // This digraph has different upper case and // title ...Read now
Unlock full access