@ -21,30 +21,68 @@ This project will help you learn about :
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md).
- It is recommended that the code should present a **test file**.
- It will be given a `banner` file with a specific graphical template representation of ASCII.
- It will be given some [**banner**](https://github.com/01-edu/public/ascii-banners) files with a specific graphical template representation of ASCII. The files are formatted in a way that it is not necessary to change them.
### Banner Format
- Each character as an height of 8 lines.
- Characters are separate by a new line `\n`.
- Here is an example (one dot represents one space) :
You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as the first subject but the second argument must be the name of the template.
You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but the second argument must be the name of the template.
This project will help you learn about :
@ -18,6 +18,7 @@ This project will help you learn about :
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md).
- It is recommended that the code should present a **test file**.
- You can see all about the **banners** [here](https://github.com/01-edu/public/ascii-art.en.md).
### Usage
@ -32,15 +33,23 @@ student@ubuntu:~/ascii-art$ ./ascii-art "hello" standard
You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as the first subject but the representation should be formatted using a flag `--align=<type>`, in which `type` can be :
You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but the representation should be formatted using a **flag**`--align=<type>`, in which `type` can be :
- center
- left
- right
- justify
This project will help you learn about :
@ -22,7 +23,6 @@ This project will help you learn about :
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md).
- It is recommended that the code should present a **test file**.
- You should build your one files with the templates you desire.
### Usage
@ -47,13 +47,22 @@ This project will help you learn about :
Ascii-art-output consists on receiving two strings. The first argument will be converted into a graphic representation of ASCII and written into a file named by using the second argument.
- You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but writing the result into a file.
- The second argument will be a **flags**, `--output=<fileName.txt>`, in which `--output` is the flag and `<fileName.txt>` is the file name.
- In case the second argument is not present it should print the graphic representation.
- The file must be named by using the flag `--output=<fileName.txt>`, in which `--output` is the flag and `<fileName.txt>` is the file name.
This project will help you learn about :
@ -21,7 +20,6 @@ This project will help you learn about :
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md).
- It is recommended that the code should present a **test file**.
- You may use the same `banner` file.
### Usage
@ -29,23 +27,23 @@ This project will help you learn about :
student@ubuntu:~/ascii-art$ go build
student@ubuntu:~/ascii-art$ ./ascii-art "hello" standard --output=banner.txt
student@ubuntu:~/ascii-art$ cat banner.txt
_ __
| | | | | |
| |_____ | | | | ___
| _ \ / _ \ | | | | / _ \
| | | | | __/ | | | | | (_) |
|_| |_| \___| |_| |_| \___/
student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" standard --output=banner.txt