env

package
v0.0.0-...-99c0e08 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: GPL-3.0 Imports: 18 Imported by: 7

Documentation

Overview

* @Date: 2021-06-30 20:36:39 * @LastEditors: Wangjun * @LastEditTime: 2023-09-12 17:27:09 * @FilePath: \golib\env\env.go * @Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateListenerTCP

func CreateListenerTCP() (listener *net.TCPListener, err error)

*

  • @description: 创建TCP listener 服务
  • @return {*}

func Init

func Init(configPath ...string) (conf config.Configer)

*

  • @description:初始化基础环境,初始化失败,程序自动退出
  • @param {string} path
  • @return {*}

func Reset

func Reset()

Reset 重设工作目录为程序所在的目录

func SetLogPath

func SetLogPath(path string)

func Setup

func Setup(confPath string)

初始化设置

Types

This section is empty.

Jump to

Keyboard shortcuts

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