github.com/linuxboot/fiano@v1.2.0/pkg/cbfs/cbfs.go (about)

     1  // Copyright 2018-2021 the LinuxBoot 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 cbfs
     6  
     7  import "os"
     8  
     9  func Open(n string) (*Image, error) {
    10  	f, err := os.Open(n)
    11  	if err != nil {
    12  		return nil, err
    13  	}
    14  
    15  	return NewImage(f)
    16  }