mirror of
https://github.com/bootdotdev/fcc-learn-golang-assets.git
synced 2025-12-11 15:51:16 +00:00
18 lines
330 B
Go
18 lines
330 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
messageLen := 10
|
|
maxMessageLen := 20
|
|
fmt.Println("Trying to send a message of length:", messageLen, "and a max length of:", maxMessageLen)
|
|
|
|
// don't touch above this line
|
|
|
|
if messageLen > maxMessageLen {
|
|
fmt.Println("Message sent")
|
|
} else {
|
|
fmt.Println("Message not sent")
|
|
}
|
|
}
|