include

package
v0.0.0-...-d651571 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2024 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright (C) 2024 early (LGPL)

Copyright (C) 2024 early (LGPL)

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoRuntime            = errors.New("could not access runtime for caller info")
	ErrNoGoPath             = errors.New("GOPATH is unset")
	ErrFileNotAllowedInMain = errors.New("include.File can't be called in package main")
)
View Source
var ErrNoEligibleCaller = errors.New("no eligible caller on the stack")
View Source
var ErrNoRuntimeAccess = errors.New("couldn't access the runtime")

Functions

This section is empty.

Types

type Opener

type Opener interface {
	Open() (io.ReadCloser, error)
}

func File

func File(relativePath string, ignorePackages ...string) Opener

File returns an Opener that Opens() a file relative to the calling package.

type OpenerFunc

type OpenerFunc func() (io.ReadCloser, error)

func (OpenerFunc) Open

func (opener OpenerFunc) Open() (io.ReadCloser, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL