Debian Codegraph @

asset/asset.go

raw
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 asset
8
9 import "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 Open(name string) (File, error) {
17 return openAsset(name)
18 }
19
20 // File is an open asset.
21 type File interface {
22 io.ReadSeeker
23 io.Closer
24 }