Comments (2)
The xdg.Home
field was introduced because historically, the code for os.UserHomeDir
has not been the same between Go versions and I wanted to support as many as possible. For example, the code did change between Go 1.15 and Go 1.16. Regarding moving the implementation for homeDir
in a common location, maybe. I don't see advantages in doing so at this point.
However, I might drop xdg.Home
(and homeDir
) completely in the next major version of the library as older Go versions are not widely used anymore. It must be in a major version because I don't do breaking changes in minor version releases.
from xdg.
Thank you for the fast reply @adrg.
I was trying to get rid of dupplicate code by removing all the 4 homeDir
function and replace them with only one. I did not know you would remove the xdg.Home
in the future. I guess this can be closed then.
from xdg.
Related Issues (14)
- Support more XDG directories HOT 4
- createPath might be doing to much HOT 3
- Plan 9 support HOT 3
- On windows please use KnownfolderPath HOT 4
- Parse ~/.config/user-dirs.dirs file HOT 7
- Custom file system support? HOT 4
- `Create` may set up wrong permissions for some directories in the path HOT 8
- macOS: do not use ~/Library/Preferences HOT 3
- DataDirs no longer used HOT 7
- Provide CacheDir function HOT 2
- Remove might be a bit to harsh HOT 3
- User directories are not localized HOT 1
- Should not change permissions without consent HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xdg.