core

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package core The core package contains some core interfaces and common methods

   Responsibility
   1. Initialize
   2. core interfaces
   3.
	Created by guoxin in 2020/4/10 11:25 上午

Index

Constants

View Source
const (
	// S separator
	S string = "."
	// B Backslash
	B string = "/"
	// C colon
	C string = ":"
	// AT at
	AT string = "@"
	// Q ?
	Q string = "?"
)

Variables

This section is empty.

Functions

func SetWorkDirectory

func SetWorkDirectory() error

SetWorkDirectory set work directory

Types

type BEnable

type BEnable struct {
	Enable bool `mapstructure:"enable"`
}

type Initialize

type Initialize interface {
	// Initialize
	// 初始化配置
	// 没有泛型使用interface{}替代
	Initialize(params ...interface{}) interface{}
}

type InitializeLock

type InitializeLock struct {
	*atomic.Bool
}

InitializeLock Make sure you only initialize it once

func NewInitLock

func NewInitLock() InitializeLock

func (*InitializeLock) IsInit

func (l *InitializeLock) IsInit() bool

type Properties

type Properties interface {
	// contains filtered or unexported methods
}

Properties Properties.load() -> Properties.prefix() -> Initialize.Initialize()

Directories

Path Synopsis
Package tools Created by guoxin in 2020/1/10 2:15 下午 Package tools Created by guoxin in 2020/1/10 11:16 上午 Package tools Created by guoxin in 2020/11/1 12:08 上午
Package tools Created by guoxin in 2020/1/10 2:15 下午 Package tools Created by guoxin in 2020/1/10 11:16 上午 Package tools Created by guoxin in 2020/11/1 12:08 上午

Jump to

Keyboard shortcuts

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