lang

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger() *zap.Logger

func InitProductLogger added in v0.0.11

func InitProductLogger(logFileName string, maxSize int, maxBackups int, maxAge int) *zap.Logger

@param logFileName 日志文件存放目录 param maxSize 文件大小限制,单位MB param maxBackups 最大保留日志文件数量 param maxAge 日志文件保留天数

func LeftString added in v0.0.5

func LeftString(data string, count int) string

@title return left string ,support utf-8 and without panic when outbound

Types

type FormatStringer added in v0.0.9

type FormatStringer struct {
	// contains filtered or unexported fields
}

func (*FormatStringer) GetParamNames added in v0.0.9

func (f *FormatStringer) GetParamNames() []string

func (*FormatStringer) Parse added in v0.0.9

func (f *FormatStringer) Parse(content string)

parse content to parts

func (*FormatStringer) Replace added in v0.0.9

func (f *FormatStringer) Replace(paramName string, index int, newValue string)

func (*FormatStringer) ReplaceAll added in v0.0.9

func (f *FormatStringer) ReplaceAll(paramName string, newValue string)

func (*FormatStringer) String added in v0.0.9

func (f *FormatStringer) String() string

type StringPart added in v0.0.9

type StringPart struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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