lextoumbourou / goodhosts Goto Github PK
View Code? Open in Web Editor NEWSimple hosts file management in Golang (deprecated).
License: MIT License
Simple hosts file management in Golang (deprecated).
License: MIT License
so ,if my program run on windows and flush hosts changes.
other program can not read hosts file any more until my program exit.
Could goodhosts use a single line per host in the hosts file? Or a limit of how many hosts get added to a single line? The long lines seem to cause occasional trouble with name resolution macOS, and more than 10 hosts per line seems to be completely nonfunctional at least in some WIndows versions, see https://superuser.com/questions/932112/is-there-a-maxium-number-of-hostname-aliases-per-line-in-a-windows-hosts-file
Spurred by request in ddev/ddev#948
In the readme, API usage lines should list hosts, err := goodhosts.NewHosts()
instead of hosts := goodhosts.NewHosts()
The Linux download for version 2.1.0 of this program isn't actually a linux executable, but instead a Mach-O 64-bit executable.
Not only that, but the executable as it stands doesn't even work on macOS High Sierra - I get a runtime error instead.
failed MSpanList_Insert 0x279000 0x26611aa86d8 0x0
fatal error: MSpanList_Insert
I think that the version of Go used to compile the program in the release is too out-of-date to work on High Sierra.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.