| 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 | //go:build darwin || linux || windows |
| 6 | |
| 7 | package assetscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/asset`/ |
| 8 | |
| 9 | import "ioscip-go gomod github.com/golang/go/src go1.24.0 io/" |
| 10 | |
| 11 | // Open opens a named asset. |
| 12 | // |
| 13 | // Errors are of type *os.PathError. |
| 14 | // |
| 15 | // This must not be called from init when used in android apps. |
| 16 | func Openscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/asset`/Open().(name string) (Filescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/asset`/File#, error) { |
| 17 | return openAssetscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/asset`/openAsset().(name) |
| 18 | } |
| 19 | |
| 20 | // File is an open asset. |
| 21 | type Filescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/asset`/File# interface { |
| 22 | ioscip-go gomod github.com/golang/go/src go1.24.0 io/.ReadSeekerscip-go gomod github.com/golang/go/src go1.24.0 io/ReadSeeker# |
| 23 | ioscip-go gomod github.com/golang/go/src go1.24.0 io/.Closerscip-go gomod github.com/golang/go/src go1.24.0 io/Closer# |
| 24 | } |