utility

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: Apache-2.0 Imports: 2 Imported by: 10

README

GoLang_Utility

It provides following utility class

  • StringBuilder: like StringBuilder on Java, but it has only minimum functions for me
  • LogUtil: for management output log

Version history

  • 2016.03.18 v0.0.1: release
  • 2017.11.28 v0.0.2: bug fix

Documentation

Overview

LogUtil.go

Index

Constants

View Source
const LogLevelD = 15
View Source
const LogLevelE = 1
View Source
const LogLevelI = 7
View Source
const LogLevelV = 31
View Source
const LogLevelW = 3

Variables

View Source
var EnableDebug bool = true

Functions

func ChangeLogLevel

func ChangeLogLevel(logLevel int)

func GetLogLevel

func GetLogLevel() int

func LogD

func LogD(content string)

func LogE

func LogE(content string)

func LogI

func LogI(content string)

func LogInit

func LogInit()

func LogV

func LogV(content string)

func LogW

func LogW(content string)

Types

type Logger

type Logger struct {
	LogLevel int
	// contains filtered or unexported fields
}

func (Logger) ChangeLogLevel

func (this Logger) ChangeLogLevel(logLevel int)

func (Logger) GetLogLevel

func (this Logger) GetLogLevel() int

func (Logger) LogD

func (this Logger) LogD(content string)

func (Logger) LogE

func (this Logger) LogE(content string)

func (Logger) LogI

func (this Logger) LogI(content string)

func (Logger) LogV

func (this Logger) LogV(content string)

func (Logger) LogW

func (this Logger) LogW(content string)

type LoggerIF

type LoggerIF interface {
	GetLogLevel() int
	ChangeLogLevel(logLevel int)
	LogV(content string)
	LogD(content string)
	LogI(content string)
	LogW(content string)
	LogE(content string)
	// contains filtered or unexported methods
}

type StringBuilder

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

func (*StringBuilder) Append

func (this *StringBuilder) Append(text string) *StringBuilder

func (*StringBuilder) Delete

func (this *StringBuilder) Delete()

func (*StringBuilder) String

func (this *StringBuilder) String() string

type StringBuilderIF

type StringBuilderIF interface {
	Append(text string) StringBuilder
	Delete()
	String() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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