yadro_test_task

module
v0.0.0-...-80312d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2024 License: MIT

README

YADRO Test Task

��������� �������� �������� �������, ������� ������ �� ������� ������������� �����, ������������ ������� � ������������ ������� �� ���� � ����� ��������� ������� �����. ������� ����� ���� ����������� �� Golang.

�������� ������� �����: ���� ��� ��������� ������ � �������� ����� ��������� �� ����� Golang (������ 1.19 � ������) � �������������� go modules, ���������� �� ������� � �������� ������� (���������� ������ � �� ���������� ������������). ������� ������ ������������ ����� ��������� ����. ���� ����������� ������ ���������� ��� ������� ���������. ������ ������� ���������:

$ task.exe test_file.txt

��������� ������ ���������c� � Linux ��� Windows � �������������� docker container-a (��������� ��������� Dockerfile). ��������� ������������� ����������� ���������� (https://pkg.go.dev/std). ������������� ����� ��������� ���������, ����� �����������, ���������. � �������, ����� ������ � �������� �����, ��������� ������������ ���������� �� ������� ��������� ��� ��������.

������ ��� ���������� ����� ����-������

  1. ����������� �����������
    git clone https://github.com/4aykovski/yadro_test_task.git
  1. ������� � ���������� �������
    cd yadro_test_task
  1. ��������� �����
    docker build -t your_image_name:your_tag .
  1. ��������� ��������� � ��������������� ����-�������
    docker run -t your_image_name:your_tag

������ � ����������� ����� ����-������

  1. ����������� �����������
    git clone https://github.com/4aykovski/yadro_test_task.git
  1. ������� � ���������� �������
    cd yadro_test_task
  1. ������� � ����� cases ����� ����-���� � ��������� ���
    nano ./cases/new_test_case.txt
  1. �� ������� �������� � Makefile ����� ����-���� �� �������� � ������������� ��� ������� ���� ����-������ �����
    nano ./Makefile
  1. ��������� �����
    docker build -t your_image_name:your_tag .
  1. ��������� ��������� � ����� ����-������
    docker run -t your_image_name:your_tag ./app ./cases/new_test_case.txt
  1. � ������ ���������� ����-����� � Makefile - ��������� ��� ����-�����
    docker run -t your_image_name:your_tag

Directories

Path Synopsis
cmd
app
internal
app
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL