file

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(path string, structPtr any) error

Read is a function that parses the content of the file into the provided cfg structure. The path parameter should be a string representing the path to the file. The structPtr parameter should be a pointer to a struct where each field represents a configuration option. The function returns an error if the parsing process fails, wrapping the original error with a message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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