You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
313 B

package main
import (
"fmt"
"os"
)
func main() {
if len(os.Args) == 2 {
arg := []rune(os.Args[1])
for i, ch := range arg {
if ch >= 'a' && ch <= 'z' {
arg[i] = 'z' - ch + 'a'
} else if ch >= 'A' && ch <= 'Z' {
arg[i] = 'Z' - ch + 'A'
}
}
fmt.Print(string(arg))
}
fmt.Println()
}