mirror of
https://github.com/bootdotdev/fcc-learn-golang-assets.git
synced 2025-12-11 15:51:16 +00:00
36 lines
502 B
Go
36 lines
502 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func removeProfanity(message *string) {
|
|
// ?
|
|
}
|
|
|
|
// don't touch below this line
|
|
|
|
func test(messages []string) {
|
|
for _, message := range messages {
|
|
removeProfanity(&message)
|
|
fmt.Println(message)
|
|
}
|
|
}
|
|
|
|
func main() {
|
|
messages1 := []string{
|
|
"well shoot, this is awful",
|
|
"dang robots",
|
|
"dang them to heck",
|
|
}
|
|
|
|
messages2 := []string{
|
|
"well shoot",
|
|
"Allan is going straight to heck",
|
|
"dang... that's a tough break",
|
|
}
|
|
|
|
test(messages1)
|
|
test(messages2)
|
|
}
|