utils

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//Empty 空字符串
	Empty = ""
)

Variables

This section is empty.

Functions

func GetInternal

func GetInternal() string

GetInternal 获取内部ip

func IsNilObject

func IsNilObject(object interface{}) bool

IsNilObject 判断是否空对象

func IsNotNil

func IsNotNil(object interface{}) bool

IsNotNil 判断是否nil

Types

type ContentParser

type ContentParser interface {
	Parse(cache agcache.CacheInterface) (string, error)
}

ContentParser 内容转换

type DefaultParser

type DefaultParser struct {
}

DefaultParser 默认内容转换器

func (*DefaultParser) Parse

func (d *DefaultParser) Parse(cache agcache.CacheInterface) (string, error)

Parse 内存内容默认转换器

type PropertiesParser

type PropertiesParser struct {
}

PropertiesParser properties转换器

func (*PropertiesParser) Parse

func (d *PropertiesParser) Parse(cache agcache.CacheInterface) (string, error)

Parse 内存内容=>properties文件转换器

Jump to

Keyboard shortcuts

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