goapp

package module
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 13 Imported by: 3

README

goapp GoDoc License

The package is used to initialize an application to simply the creation. Support Go1.21+.

Install

$ go get -u github.com/xgfone/goapp

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v0.7.0

func Init(appName string, opts ...gconf.Opt)

Init is used to initialize the application.

  1. Register the log options.
  2. Initialize configuration.
  3. Initialize the logging.
  4. Call the registered initialization functions.
  5. Start a goroutine to monitor the exit signals.

func ServeHTTPWithListener added in v0.56.0

func ServeHTTPWithListener(ln net.Listener, server *http.Server)

ServeHTTPWithListener starts the http server with listener until it is stopped.

Types

This section is empty.

Directories

Path Synopsis
Package config is used to configure the application.
Package config is used to configure the application.
Package db provides some assistant functions about the database.
Package db provides some assistant functions about the database.
log
Package log is used to initialize the logging.
Package log is used to initialize the logging.
file
Package provides a rotating file based on the file size.
Package provides a rotating file based on the file size.

Jump to

Keyboard shortcuts

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