from typing import Union
from pathlib import Path


def get_file_content(path: Union[str, Path]) -> str:
    """Get file content in given path."""
    with open(path, mode="r") as f:
        return f.read()