go-exercises-backend, v1.7.2
Posted on

Back-end of the service for solving programming exercises.
Add a few example tasks.
Change Log
- example tasks:
- add the migration that creates a few example tasks:
- add the utility for applying migrations;
- add the solutions for the example tasks.
- add the migration that creates a few example tasks:
Migration
The necessary tables will be created automatically on service starting.
Then run the manual migration to create a few example tasks (optionally):
$ ./tools/migrate.sh -h | --help
$ ./tools/migrate.sh
Options:
-h,--help— show the help message and exit.
Environment variables:
PATH_TO_MIGRATIONS— path to migrations (default:./migrations);STORAGE_ADDRESS— PostgreSQL connection URI (default:postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable).
The following example tasks will be created:
- Sum of Two Numbers (Test Task)
- Sum of Array
- Product of Array
- Minimum of Array
- Maximum of Array
- Index of Array Minimum
- Index of Array Maximum
- Search in Array
- Search in Array (Last Occurrence)
- Filtering of Array
- Filtering of Array (In-place)
- Removing of Duplicates
- Removing of Duplicates (In-place)
Repository
Link: https://github.com/thewizardplusplus/go-exercises-backend/tree/v1.7.2.
Content: code.
License: MIT.