mirror of https://github.com/01-edu/public.git
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.
2.4 KiB
2.4 KiB
ascii-art-fs
Objectives
You must follow the same instructions as in the first subject but the second argument must be the name of the template. I know some templates may be hard to read, just do not obsess about it.
Instructions
- Your project must be written in Go.
- The code must respect the good practices.
- It is recommended to have test files for unit testing.
- You can see all about the banners here.
- The usage must respect this format
go run . [STRING] [BANNER]
, any other formats must return the following usage message:
Usage: go run . [STRING] [BANNER]
EX: go run . something standard
Usage
$ go run . "hello" standard | cat -e
_ _ _ $
| | | | | | $
| |__ ___ | | | | ___ $
| _ \ / _ \ | | | | / _ \ $
| | | | | __/ | | | | | (_) | $
|_| |_| \___| |_| |_| \___/ $
$
$
$ go run . "Hello There!" shadow | cat -e
$
_| _| _| _| _|_|_|_|_| _| _| $
_| _| _|_| _| _| _|_| _| _|_|_| _|_| _| _|_| _|_| _| $
_|_|_|_| _|_|_|_| _| _| _| _| _| _| _| _|_|_|_| _|_| _|_|_|_| _| $
_| _| _| _| _| _| _| _| _| _| _| _| _| $
_| _| _|_|_| _| _| _|_| _| _| _| _|_|_| _| _|_|_| _| $
$
$
$ go run . "Hello There!" thinkertoy | cat -e
$
o o o o o-O-o o o $
| | | | | | | $
O--O o-o | | o-o | O--o o-o o-o o-o o $
| | |-' | | | | | | | |-' | |-' $
o o o-o o o o-o o o o o-o o o-o O $
$
$
Allowed packages
- Only the standard Go packages are allowed
This project will help you learn about :
- The Go file system(fs) API
- Data manipulation