## searchreplace
### Instructions
Write a program that takes 3 arguments, the first argument is a `string` in which to replace a letter (the 2nd argument) by another one (the 3rd argument).
Refactor & Beautify & destruction commit
return early, remove else branches, reorder conditions and top-level functions, remove empty lines, remove unnecessary append(), fix typos, stop using testing package, remove dead code, fix mistakes in subjects, tests and solutions, remove disclaimers, reformat comments, simplify solutions, tests, add more instructions to subjects, remove obsolete files, etc.
Some of the reasons behind those modifications will be added to good-practices.en.md
Some of the exercises are now broken, they will have to be fixed, most of them have a "TODO:" comment.
5 years ago
- If the number of arguments is different from 3, the program displays nothing.
- If the second argument is not contained in the first one (the string) then the program rewrites the `string` followed by a newline (`'\n'`).
### Usage
```console
student@ubuntu:~/searchreplace/test$ go build
student@ubuntu:~/searchreplace/test$ ./test "hella there" "a" "o"
hello there
student@ubuntu:~/searchreplace/test$ ./test "abcd" "z" "l"
abcd
student@ubuntu:~/searchreplace/test$ ./test "something" "a" "o" "b" "c"
student@ubuntu:~/searchreplace/test$
```