def env_match(language: str, env: str) ->bool:
    """检测language和env是否匹配.

    Args:
        language (str): language
        env (str): env

    Returns:
        bool: 是否匹配

    """
    if language == 'Python':
        if env not in ('env', 'conda'):
            return False
        else:
            return True
    elif language in ('Javascript',):
        if env not in ('node', 'frontend', 'webpack', 'vue', 'vue-electron',
            'vue-native', 'vue-nativescript'):
            return False
        else:
            return True
    elif language in ('Golang',):
        if env not in ('gomod',):
            return False
        else:
            return True
    else:
        raise AttributeError(f'unknown language {language}')
