dot

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package dot contains utilities can be used extreme frequently.

Index

Constants

View Source
const MaxLineLength = 2048

MaxLineLength define maximum line length for environment file.

Variables

This section is empty.

Functions

func Env

func Env(env string, maxLength int) (string, error)

Env get environment from .env file in the nearest parent folder, should be used in unit test or similar scenes.

func Must

func Must[T any](v T, err error) T

Must treat return value as expected mostly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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