files

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCallerDir

func GetCallerDir(stacktraceStep int) (string, error)

GetCallerDir stacktraceStep is the number calls we travel up to identify the source Go file. This will usually be 2.

func ReadRelativeFile

func ReadRelativeFile(relativePath string) ([]byte, error)

ReadRelativeFile read file relative to the calling go file

Types

This section is empty.

Jump to

Keyboard shortcuts

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