options

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCamelCase = true

Functions

This section is empty.

Types

type LoadEnvOptions

type LoadEnvOptions struct {
	CamelCase *bool
}

func LoadEnv

func LoadEnv() *LoadEnvOptions

func MergeLoadEnvOptions

func MergeLoadEnvOptions(opts ...*LoadEnvOptions) *LoadEnvOptions

MergeLoadEnvOptions combines the given *LoadEnvOptions into one *LoadEnvOptions in a last one wins fashion.

func (*LoadEnvOptions) SetCamelCase

func (leo *LoadEnvOptions) SetCamelCase(b bool) *LoadEnvOptions

type ServeOptions

type ServeOptions struct {
	ServePort *int
}

func MergeServeOptions

func MergeServeOptions(opts ...*ServeOptions) *ServeOptions

func Serve

func Serve() *ServeOptions

func (*ServeOptions) SetHttpPort

func (leo *ServeOptions) SetHttpPort(p int) *ServeOptions

Jump to

Keyboard shortcuts

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