Skip to content

Feature Request: Method to Create Hostsfile from String #55

@spencercjh

Description

@spencercjh

I would like to express my gratitude for your contributions to the project. The two New methods for reading from a file are extremely convenient and useful in my work.

However, I've encountered a scenario where I need to read the contents of a hostsfile stored in memory. My workaround is to write the in-memory hostsfile to a temporary file and then use the existing API to read it. This process is not ideal and could be streamlined.

Therefore, I would like to propose a new feature: a NewHostsFromStr method that allows the creation of a hostsfile directly from a string. Maybe we can just expose the existing test method loadString?

If this proposal aligns with the project's goals, I want to contribute to its implementation. I look forward to hearing your thoughts on this suggestion.

Thank you for considering my proposal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions