doc.go 808 B

1234567891011121314151617
  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. // Package asset provides access to application-bundled assets.
  5. //
  6. // On Android, assets are accessed via android.content.res.AssetManager.
  7. // These files are stored in the assets/ directory of the app. Any raw asset
  8. // can be accessed by its direct relative name. For example assets/img.png
  9. // can be opened with Open("img.png").
  10. //
  11. // On iOS an asset is a resource stored in the application bundle.
  12. // Resources can be loaded using the same relative paths.
  13. //
  14. // For consistency when debugging on a desktop, assets are read from a
  15. // directory named assets under the current working directory.
  16. package asset // import "golang.org/x/mobile/asset"