files

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 10 Imported by: 6

Documentation

Overview

Package files provides file loading utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFunc added in v0.18.0

func LoadFunc(filename, funcName string) (string, error)

LoadFunc parses the filename for a given function name and returns it in its current form as a string.

func MustLoad

func MustLoad(filename string) string

MustLoad returns the content of filename or panics.

func MustLoadFunc added in v0.18.0

func MustLoadFunc(filename, funcName string) string

func MustLoadLines

func MustLoadLines(filename string, from, to int) string

MustLoadLines returns the content of filename within a range. If to is -1 the file is read until EOF. Lines start at 1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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