options

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCamelCase = true
View Source
var DefaultHttpSupport = false

Functions

This section is empty.

Types

type CommandOptions added in v1.4.0

type CommandOptions struct {
	HttpSupport *bool
}

func Command added in v1.4.0

func Command() *CommandOptions

func MergeCommandOptions added in v1.4.0

func MergeCommandOptions(opts ...*CommandOptions) *CommandOptions

MergeCommandOptions combines the given *CommandOptions into one *CommandOptions in a last one wins fashion.

func (*CommandOptions) WithHttpSupport added in v1.4.0

func (opts *CommandOptions) WithHttpSupport() *CommandOptions

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