| 1 | // Copyright 2015 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | // Package asset provides access to application-bundled assets. |
| 6 | // |
| 7 | // On Android, assets are accessed via android.content.res.AssetManager. |
| 8 | // These files are stored in the assets/ directory of the app. Any raw asset |
| 9 | // can be accessed by its direct relative name. For example assets/img.png |
| 10 | // can be opened with Open("img.png"). |
| 11 | // |
| 12 | // On iOS an asset is a resource stored in the application bundle. |
| 13 | // Resources can be loaded using the same relative paths. |
| 14 | // |
| 15 | // For consistency when debugging on a desktop, assets are read from a |
| 16 | // directory named assets under the current working directory. |
| 17 | package asset |