Documentation
¶
Overview ¶
Package paths returns the per-user directories an application keeps its files in, on every platform Tango runs on.
On desktop each directory is the platform's conventional location with the app ID appended; the app ID should be a reverse-DNS name such as "com.example.notes". Mobile apps are sandboxed, so there the ID is not appended.
Config Data Cache Logs
macOS ~/Library/Application ~/Library/Application ~/Library/Caches/ID ~/Library/Logs/ID
Support/ID Support/ID
Windows %AppData%\ID %LocalAppData%\ID %LocalAppData%\ID\Cache %LocalAppData%\ID\Logs
Linux/BSD $XDG_CONFIG_HOME/ID $XDG_DATA_HOME/ID $XDG_CACHE_HOME/ID $XDG_STATE_HOME/ID/logs
iOS $HOME/Library/Application $HOME/Library/Application $HOME/Library/Caches $HOME/Library/Caches/Logs
Support Support/Data
Android $HOME/config $HOME/data $HOME/cache $HOME/logs
The functions only compute paths; call os.MkdirAll before use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.