Documentation ¶
Overview ¶
LogUtil.go
this file is generated by command.
Index ¶
- Constants
- Variables
- func AppendPrefix(path, prefix string) string
- func AppendSuffix(path, suffix string) string
- func CallAfterDelay(delayTime time.Duration, funcValue reflect.Value, parameters ...interface{}) []reflect.Value
- func CallAfterRandomDelay(funcValue reflect.Value, parameters ...interface{}) []reflect.Value
- func CamelToSnakeCase(text string) string
- func ChangeExtension(path string, newExtension string) string
- func ChangeLogLevel(logLevel int)
- func ChangeLogLevelByText(logLevelText string)
- func ChangeOutput(outputFile string)
- func CreatePassword(length int, validTypes ...int) string
- func DateInAsiaTokyo(year int, month time.Month, day, hour, min, sec, nsec int) (ret time.Time, retErr error)
- func DateInJST(year int, month time.Month, day, hour, min, sec, nsec int) (ret time.Time, retErr error)
- func DateInUTC(year int, month time.Month, day, hour, min, sec, nsec int) (ret time.Time, retErr error)
- func ExchangeAlphabetToHalfAlphabet(originalText string) string
- func ExchangeHalfAlphabetToAlphabet(originalText string) string
- func ExchangeHalfKanaToKana(originalText string) string
- func ExchangeHalfNumberToNumber(originalText string) string
- func ExchangeHalfSpaceToSpace(originalText string) string
- func ExchangeHalfSymbolToSymbol(originalText string) string
- func ExchangeHiraganaToKana(originalText string) string
- func ExchangeKanaToHiragana(originalText string) string
- func ExchangeNFCtoNFD(originalText string) string
- func ExchangeNFDtoNFC(originalText string) string
- func ExchangeNumberToHalfNumber(originalText string) string
- func ExchangePath(originalPath string) string
- func ExchangeRomanNumberToHalfNumber(originalText string) string
- func ExchangeSpaceToHalfSpace(originalText string) string
- func ExchangeSymbolToHalfSymbol(originalText string) string
- func GetCUIParameter(receiver interface{}, debug bool) []error
- func GetExtensionFromMIMEType(mimeType string) string
- func GetFiles(path string, allowExtensions []string) []string
- func GetFilesV(path string, allowExtensions ...string) []string
- func GetInterface(mapObject interface{}, key interface{}) (interface{}, error)
- func GetLogLevel() int
- func GetMIMETypeFromExtension(filePath string) string
- func GetNumber(mapObject interface{}, key interface{}) (float64, error)
- func GetParent(itemPath string) string
- func GetRealFilepath(filePath string, ignoreNameCase, ignoreExtCase bool) (outputFilepath string, exist bool)
- func GetString(mapObject interface{}, key interface{}) (string, error)
- func GetUserInput(prefix string, caseSensitive bool, inputHandler *InputHandler, ...) (userInput string, ret bool)
- func HasPrefix(s, prefix []rune) bool
- func HasSuffix(s, suffix []rune) bool
- func InAsiaTokyo(srcTime time.Time) (ret time.Time, retErr error)
- func InJST(srcTime time.Time) (ret time.Time, retErr error)
- func InUTC(srcTime time.Time) (ret time.Time, retErr error)
- func IndexRunes(s []rune, subRunes []rune) int
- func IsDir(path string) bool
- func IsExist(path string) bool
- func IsFile(path string) bool
- func IsFileByFileInfo(fileInfo os.FileInfo) bool
- func IsNotFound(err error) bool
- func IsSupportTimezone(timezoneText string) (ret bool)
- func IsSymlink(path string) bool
- func IsSymlinkByFileInfo(fileInfo os.FileInfo) bool
- func JoinPath(base string, separator string, part string, otherParts ...string) string
- func LastIndexRunes(s []rune, subRunes []rune) int
- func LogD(content string)
- func LogE(content string)
- func LogI(content string)
- func LogInit()
- func LogV(content string)
- func LogW(content string)
- func LogfD(format string, args ...interface{})
- func LogfE(format string, args ...interface{})
- func LogfI(format string, args ...interface{})
- func LogfV(format string, args ...interface{})
- func LogfW(format string, args ...interface{})
- func MapKeys(mapObj interface{}) interface{}
- func Now(tzText string) (ret time.Time, retErr error)
- func NowInAsiaTokyo() (ret time.Time, retErr error)
- func NowInJST() (ret time.Time, retErr error)
- func NowInUTC() (ret time.Time, retErr error)
- func Open(filePath string) (*os.File, error)
- func OpenFile(filePath string, flag int, perm os.FileMode) (*os.File, error)
- func OutputTime(enable bool)
- func ParseNumber(str string) (float64, error)
- func PrepareOutputFilepath(inputTopFolderpath, inputFilepath, outputTopFolderpath, distExtension string) string
- func ReadFile(filePath string) ([]byte, error)
- func RemoveSliceItem(slice interface{}, position int) (interface{}, bool)
- func SkipUTF8BOM(readseeker io.ReadSeeker) (err error)
- func SnakeToCamelCase(text string) string
- func Split(originalText string, sepTextSlice []string, invalidSpaceStarters ...string) []string
- func TernaryOpFloat32(conv bool, v1, v2 float32) float32
- func TernaryOpFloat32Func(conv bool, f1, f2 func() float32) float32
- func TernaryOpFloat32FuncWithParams(conv bool, f1, f2 func(...interface{}) float32, params ...interface{}) float32
- func TernaryOpFloat64(conv bool, v1, v2 float64) float64
- func TernaryOpFloat64Func(conv bool, f1, f2 func() float64) float64
- func TernaryOpFloat64FuncWithParams(conv bool, f1, f2 func(...interface{}) float64, params ...interface{}) float64
- func TernaryOpInt(conv bool, v1, v2 int) int
- func TernaryOpInt16(conv bool, v1, v2 int16) int16
- func TernaryOpInt16Func(conv bool, f1, f2 func() int16) int16
- func TernaryOpInt16FuncWithParams(conv bool, f1, f2 func(...interface{}) int16, params ...interface{}) int16
- func TernaryOpInt32(conv bool, v1, v2 int32) int32
- func TernaryOpInt32Func(conv bool, f1, f2 func() int32) int32
- func TernaryOpInt32FuncWithParams(conv bool, f1, f2 func(...interface{}) int32, params ...interface{}) int32
- func TernaryOpInt64(conv bool, v1, v2 int64) int64
- func TernaryOpInt64Func(conv bool, f1, f2 func() int64) int64
- func TernaryOpInt64FuncWithParams(conv bool, f1, f2 func(...interface{}) int64, params ...interface{}) int64
- func TernaryOpInt8(conv bool, v1, v2 int8) int8
- func TernaryOpInt8Func(conv bool, f1, f2 func() int8) int8
- func TernaryOpInt8FuncWithParams(conv bool, f1, f2 func(...interface{}) int8, params ...interface{}) int8
- func TernaryOpIntFunc(conv bool, f1, f2 func() int) int
- func TernaryOpIntFuncWithParams(conv bool, f1, f2 func(...interface{}) int, params ...interface{}) int
- func TernaryOpInterface(conv bool, v1, v2 interface{}) interface{}
- func TernaryOpInterfaceFunc(conv bool, f1, f2 func() interface{}) interface{}
- func TernaryOpInterfaceFuncWithParams(conv bool, f1, f2 func(...interface{}) interface{}, params ...interface{}) interface{}
- func TernaryOpString(conv bool, v1, v2 string) string
- func TernaryOpStringFunc(conv bool, f1, f2 func() string) string
- func TernaryOpStringFuncWithParams(conv bool, f1, f2 func(...interface{}) string, params ...interface{}) string
- func TernaryOpUint(conv bool, v1, v2 uint) uint
- func TernaryOpUint16(conv bool, v1, v2 uint16) uint16
- func TernaryOpUint16Func(conv bool, f1, f2 func() uint16) uint16
- func TernaryOpUint16FuncWithParams(conv bool, f1, f2 func(...interface{}) uint16, params ...interface{}) uint16
- func TernaryOpUint32(conv bool, v1, v2 uint32) uint32
- func TernaryOpUint32Func(conv bool, f1, f2 func() uint32) uint32
- func TernaryOpUint32FuncWithParams(conv bool, f1, f2 func(...interface{}) uint32, params ...interface{}) uint32
- func TernaryOpUint64(conv bool, v1, v2 uint64) uint64
- func TernaryOpUint64Func(conv bool, f1, f2 func() uint64) uint64
- func TernaryOpUint64FuncWithParams(conv bool, f1, f2 func(...interface{}) uint64, params ...interface{}) uint64
- func TernaryOpUint8(conv bool, v1, v2 uint8) uint8
- func TernaryOpUint8Func(conv bool, f1, f2 func() uint8) uint8
- func TernaryOpUint8FuncWithParams(conv bool, f1, f2 func(...interface{}) uint8, params ...interface{}) uint8
- func TernaryOpUintFunc(conv bool, f1, f2 func() uint) uint
- func TernaryOpUintFuncWithParams(conv bool, f1, f2 func(...interface{}) uint, params ...interface{}) uint
- func ToBool(value *bool, defaultValue bool) (ret bool)
- func ToBoolPointer(value bool) *bool
- func ToByte(value *byte, defaultValue byte) (ret byte)
- func ToBytePointer(value byte) *byte
- func ToFloat32(value *float32, defaultValue float32) (ret float32)
- func ToFloat32Pointer(value float32) *float32
- func ToFloat64(value *float64, defaultValue float64) (ret float64)
- func ToFloat64Pointer(value float64) *float64
- func ToInt(value *int, defaultValue int) (ret int)
- func ToInt16(value *int16, defaultValue int16) (ret int16)
- func ToInt16Pointer(value int16) *int16
- func ToInt32(value *int32, defaultValue int32) (ret int32)
- func ToInt32Pointer(value int32) *int32
- func ToInt64(value *int64, defaultValue int64) (ret int64)
- func ToInt64Pointer(value int64) *int64
- func ToInt8(value *int8, defaultValue int8) (ret int8)
- func ToInt8Pointer(value int8) *int8
- func ToIntPointer(value int) *int
- func ToIntSlice(fromInterface interface{}) (ret []int, retErr error)
- func ToInterfaceSlice(fromInterface interface{}) (ret []interface{}, retErr error)
- func ToLowerFirst(text string) string
- func ToString(value *string, defaultValue string) (ret string)
- func ToStringPointer(value string) *string
- func ToUint(value *uint, defaultValue uint) (ret uint)
- func ToUint16(value *uint16, defaultValue uint16) (ret uint16)
- func ToUint16Pointer(value uint16) *uint16
- func ToUint32(value *uint32, defaultValue uint32) (ret uint32)
- func ToUint32Pointer(value uint32) *uint32
- func ToUint64(value *uint64, defaultValue uint64) (ret uint64)
- func ToUint64Pointer(value uint64) *uint64
- func ToUint8(value *uint8, defaultValue uint8) (ret uint8)
- func ToUint8Pointer(value uint8) *uint8
- func ToUintPointer(value uint) *uint
- func ToUpperFirst(text string) string
- func UseStdout(useStdout bool)
- func Version() string
- func VersionMajorCode() int
- func VersionMinorCode() int
- func VersionRevisionCode() int
- type CacheEditor
- type CacheEditorFactory
- type ConfigHelper
- type CsvReader
- type FormData
- type HttpResponseHelper
- type InputHandler
- type InterfaceHelper
- func (helper *InterfaceHelper) Equal(from interface{}) bool
- func (helper *InterfaceHelper) EqualWithRoughClassification(from interface{}) bool
- func (helper *InterfaceHelper) GetBool() (bool, bool)
- func (helper *InterfaceHelper) GetBoolArray() ([]bool, bool)
- func (helper *InterfaceHelper) GetInterfaceArray() ([]interface{}, bool)
- func (helper *InterfaceHelper) GetKind() reflect.Kind
- func (helper *InterfaceHelper) GetNumber() (float64, bool)
- func (helper *InterfaceHelper) GetNumberArray() ([]float64, bool)
- func (helper *InterfaceHelper) GetString() (string, bool)
- func (helper *InterfaceHelper) GetStringArray() ([]string, bool)
- func (helper *InterfaceHelper) GetTime() (time.Time, bool)
- func (helper *InterfaceHelper) GetTimeArray() ([]time.Time, bool)
- func (helper *InterfaceHelper) IsArrayOrSlice() bool
- func (helper *InterfaceHelper) IsBool() bool
- func (helper *InterfaceHelper) IsFloat() bool
- func (helper *InterfaceHelper) IsInt() bool
- func (helper *InterfaceHelper) IsNumber() bool
- func (helper *InterfaceHelper) IsString() bool
- func (helper *InterfaceHelper) IsTime() bool
- func (helper *InterfaceHelper) IsUint() bool
- func (helper *InterfaceHelper) Set(from interface{}) bool
- func (helper *InterfaceHelper) SetWithRoughClassification(from interface{}) bool
- type LocalFileCache
- func (file *LocalFileCache) Close() error
- func (file *LocalFileCache) ID() string
- func (file *LocalFileCache) Read(p []byte) (int, error)
- func (file *LocalFileCache) Remove() error
- func (file *LocalFileCache) Seek(offset int64, whence int) (n int64, err error)
- func (file *LocalFileCache) Write(p []byte) (n int, err error)
- type LocalFileCacheEditorFactory
- type Logger
- func (this *Logger) ChangeLogLevel(logLevel int)
- func (this *Logger) ChangeLogLevelByText(logLevelText string)
- func (this *Logger) ChangeOutput(outputFile string)
- func (this *Logger) GetLogLevel() int
- func (this *Logger) LogD(content string)
- func (this *Logger) LogE(content string)
- func (this *Logger) LogI(content string)
- func (this *Logger) LogV(content string)
- func (this *Logger) LogW(content string)
- func (this *Logger) LogfD(format string, args ...interface{})
- func (this *Logger) LogfE(format string, args ...interface{})
- func (this *Logger) LogfI(format string, args ...interface{})
- func (this *Logger) LogfV(format string, args ...interface{})
- func (this *Logger) LogfW(format string, args ...interface{})
- func (this *Logger) OutputTime(enable bool, params ...interface{})
- func (this *Logger) UseStdout(useStdout bool)
- type LoggerIF
- type MemoryCacheEditorFactory
- func (factory *MemoryCacheEditorFactory) Close() (retErr error)
- func (factory *MemoryCacheEditorFactory) GetLimitCacheSize() int64
- func (factory *MemoryCacheEditorFactory) IsAppendCache(appendSize int64) (ret bool)
- func (factory *MemoryCacheEditorFactory) OpenCacheEditor(id string, flag int, mode interface{}) (CacheEditor, error)
- func (factory *MemoryCacheEditorFactory) Remove(id string) (retErr error)
- func (factory *MemoryCacheEditorFactory) SetLimitCacheSize(limitCacheSize int64)
- func (factory *MemoryCacheEditorFactory) SizeChanged(id string, diffSize int64)
- type MultipartHelper
- func NewMultipartHelper(reader io.Reader, boundary string, cacheEditorFactory CacheEditorFactory) (*MultipartHelper, error)
- func NewMultipartHelperFromHttpRequest(r *http.Request) (*MultipartHelper, error)
- func NewMultipartHelperFromHttpRequestWithFactory(r *http.Request, cacheEditorFactory CacheEditorFactory) (*MultipartHelper, error)
- func NewMultipartWriteHelper(cacheEditorFactory CacheEditorFactory) (ret *MultipartHelper)
- func (helper *MultipartHelper) AppendFormData(formName, mimeType string, data []byte) error
- func (helper *MultipartHelper) Close() error
- func (helper *MultipartHelper) Count() int
- func (helper *MultipartHelper) GetByIndex(index int) (*FormData, error)
- func (helper *MultipartHelper) GetByName(partName string) (*FormData, error)
- func (helper *MultipartHelper) PartNames() []string
- func (helper *MultipartHelper) Write(writer io.Writer) (boundary string, retErr error)
- type NopCloser
- type RangeValue
- type ReadHelper
- type ReflectHelper
- func (this *ReflectHelper) BoolValue(index int) bool
- func (this *ReflectHelper) Call(methodName string, values []reflect.Value) []reflect.Value
- func (this *ReflectHelper) CanSet(name string, value interface{}) bool
- func (this *ReflectHelper) FieldIndex(name string) int
- func (this *ReflectHelper) FieldName(index int) string
- func (this *ReflectHelper) FloatValue(index int) float64
- func (this *ReflectHelper) GetAddrByIndex(index int) reflect.Value
- func (this *ReflectHelper) GetByIndex(index int) interface{}
- func (this *ReflectHelper) GetByName(name string) interface{}
- func (this *ReflectHelper) GetByTagName(key string, name string) interface{}
- func (this *ReflectHelper) GetPtrByIndex(index int) reflect.Value
- func (this *ReflectHelper) GetValueByIndex(index int) reflect.Value
- func (this *ReflectHelper) IntValue(index int) int64
- func (this *ReflectHelper) InterfaceName() string
- func (this *ReflectHelper) IsBool(index int) bool
- func (this *ReflectHelper) IsFloat(index int) bool
- func (this *ReflectHelper) IsFloat32(index int) bool
- func (this *ReflectHelper) IsFloat64(index int) bool
- func (this *ReflectHelper) IsInt(index int) bool
- func (this *ReflectHelper) IsInt16(index int) bool
- func (this *ReflectHelper) IsInt32(index int) bool
- func (this *ReflectHelper) IsInt64(index int) bool
- func (this *ReflectHelper) IsInt8(index int) bool
- func (this *ReflectHelper) IsIntUint(index int) bool
- func (this *ReflectHelper) IsNumber(index int) bool
- func (this *ReflectHelper) IsString(index int) bool
- func (this *ReflectHelper) IsTime(index int) bool
- func (this *ReflectHelper) IsUint(index int) bool
- func (this *ReflectHelper) IsUint16(index int) bool
- func (this *ReflectHelper) IsUint32(index int) bool
- func (this *ReflectHelper) IsUint64(index int) bool
- func (this *ReflectHelper) IsUint8(index int) bool
- func (this *ReflectHelper) NumField() int
- func (this *ReflectHelper) SetByIndex(index int, valueInf interface{}) bool
- func (this *ReflectHelper) SetByName(name string, value interface{}) bool
- func (this *ReflectHelper) SetByTagName(key string, name string, valueInf interface{}) bool
- func (this *ReflectHelper) SetOnList(index int, valueInf interface{}) bool
- func (this *ReflectHelper) SetOnMap(key interface{}, valueInf interface{}) bool
- func (this *ReflectHelper) String(index int) string
- func (this *ReflectHelper) StringValue(index int) string
- func (this *ReflectHelper) Tag(index int) reflect.StructTag
- func (this *ReflectHelper) TimeValue(index int) time.Time
- func (this *ReflectHelper) UintValue(index int) uint64
- func (this *ReflectHelper) ValueKind(index int) reflect.Kind
- type StringBuilder
- func (this *StringBuilder) Append(text string) *StringBuilder
- func (this *StringBuilder) AppendByte(text byte) *StringBuilder
- func (this *StringBuilder) Appendf(fmtText string, params ...interface{}) *StringBuilder
- func (this *StringBuilder) Bytes() []byte
- func (this *StringBuilder) Delete()
- func (this *StringBuilder) Length() int
- func (this *StringBuilder) String() string
- type StringBuilderIF
- type TimeHelper
- func (ins *TimeHelper) DateInAsiaTokyo(year int, month time.Month, day, hour, min, sec, nsec int) (ret time.Time, retErr error)
- func (ins *TimeHelper) DateInJST(year int, month time.Month, day, hour, min, sec, nsec int) (time.Time, error)
- func (ins *TimeHelper) DateInUTC(year int, month time.Month, day, hour, min, sec, nsec int) (ret time.Time, retErr error)
- func (ins *TimeHelper) InAsiaTokyo(srcTime time.Time) (ret time.Time, retErr error)
- func (ins *TimeHelper) InJST(srcTime time.Time) (time.Time, error)
- func (ins *TimeHelper) InUTC(srcTime time.Time) (ret time.Time, retErr error)
- func (ins *TimeHelper) IsSupportTimezone(timezoneText string) (ret bool)
- func (ins *TimeHelper) Now(tzText string) (ret time.Time, retErr error)
- func (ins *TimeHelper) NowInAsiaTokyo() (ret time.Time, retErr error)
- func (ins *TimeHelper) NowInJST() (time.Time, error)
- func (ins *TimeHelper) NowInUTC() (ret time.Time, retErr error)
Constants ¶
View Source
const CUIParamExpectExist = "exist"
View Source
const CUIParamExpectFile = "file"
View Source
const CUIParamExpectFolder = "folder"
View Source
const CUIParamExpectIn = "in("
View Source
const CUIParamExpectNotExist = "not_exist"
View Source
const Cr = "\r"
View Source
const CrLf = Cr + Lf
View Source
const Lf = "\n"
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
View Source
const PwValidLargeAlpha = 2
View Source
const PwValidNumeric = 4
View Source
const PwValidSmallAlpha = 1
View Source
const PwValidSymbol = 8
View Source
const TzTextAsiaTokyo = "Asia/Tokyo"
Variables ¶
View Source
var EnableDebug bool = true
View Source
var NotFoundErr = fmt.Errorf("not found the value")
Functions ¶
func AppendPrefix ¶ added in v1.7.0
func AppendSuffix ¶ added in v1.7.0
func CallAfterDelay ¶ added in v1.10.0
func CallAfterRandomDelay ¶ added in v1.10.0
func CamelToSnakeCase ¶ added in v1.1.0
func ChangeExtension ¶ added in v1.6.0
func ChangeLogLevel ¶
func ChangeLogLevel(logLevel int)
func ChangeLogLevelByText ¶ added in v1.4.3
func ChangeLogLevelByText(logLevelText string)
func ChangeOutput ¶ added in v1.10.0
func ChangeOutput(outputFile string)
func CreatePassword ¶ added in v1.10.0
func DateInAsiaTokyo ¶ added in v1.23.2
func ExchangeAlphabetToHalfAlphabet ¶ added in v1.13.0
func ExchangeHalfAlphabetToAlphabet ¶ added in v1.13.0
func ExchangeHalfKanaToKana ¶ added in v1.13.0
func ExchangeHalfNumberToNumber ¶ added in v1.13.0
func ExchangeHalfSpaceToSpace ¶ added in v1.13.0
func ExchangeHalfSymbolToSymbol ¶ added in v1.13.0
func ExchangeHiraganaToKana ¶ added in v1.13.0
func ExchangeKanaToHiragana ¶ added in v1.13.0
func ExchangeNFCtoNFD ¶ added in v1.13.0
func ExchangeNFDtoNFC ¶ added in v1.13.0
func ExchangeNumberToHalfNumber ¶ added in v1.13.0
func ExchangePath ¶ added in v1.13.0
func ExchangeRomanNumberToHalfNumber ¶ added in v1.13.0
func ExchangeSpaceToHalfSpace ¶ added in v1.13.0
func ExchangeSymbolToHalfSymbol ¶ added in v1.13.0
func GetCUIParameter ¶ added in v1.10.0
func GetExtensionFromMIMEType ¶ added in v1.21.0
func GetInterface ¶ added in v1.10.0
func GetInterface(mapObject interface{}, key interface{}) (interface{}, error)
func GetLogLevel ¶
func GetLogLevel() int
func GetMIMETypeFromExtension ¶ added in v1.8.0
func GetRealFilepath ¶ added in v1.13.0
func GetUserInput ¶ added in v1.10.0
func GetUserInput(prefix string, caseSensitive bool, inputHandler *InputHandler, otherInputHandlers ...(*InputHandler)) (userInput string, ret bool)
func InAsiaTokyo ¶ added in v1.24.0
func IndexRunes ¶ added in v1.9.0
func IsFileByFileInfo ¶ added in v1.10.0
func IsNotFound ¶ added in v1.10.0
func IsSupportTimezone ¶ added in v1.29.0
func IsSymlinkByFileInfo ¶ added in v1.10.0
func LastIndexRunes ¶ added in v1.9.0
func NowInAsiaTokyo ¶ added in v1.23.1
func OutputTime ¶ added in v1.29.0
func OutputTime(enable bool)
func ParseNumber ¶ added in v1.10.0
func PrepareOutputFilepath ¶ added in v1.10.0
func RemoveSliceItem ¶ added in v1.10.0
func SkipUTF8BOM ¶ added in v1.25.0
func SkipUTF8BOM(readseeker io.ReadSeeker) (err error)
func SnakeToCamelCase ¶ added in v1.1.0
func TernaryOpFloat32 ¶ added in v1.17.0
func TernaryOpFloat32Func ¶ added in v1.17.0
func TernaryOpFloat32FuncWithParams ¶ added in v1.17.0
func TernaryOpFloat64 ¶ added in v1.17.0
func TernaryOpFloat64Func ¶ added in v1.17.0
func TernaryOpFloat64FuncWithParams ¶ added in v1.17.0
func TernaryOpInt ¶ added in v1.17.0
func TernaryOpInt16 ¶ added in v1.17.0
func TernaryOpInt16Func ¶ added in v1.17.0
func TernaryOpInt16FuncWithParams ¶ added in v1.17.0
func TernaryOpInt32 ¶ added in v1.17.0
func TernaryOpInt32Func ¶ added in v1.17.0
func TernaryOpInt32FuncWithParams ¶ added in v1.17.0
func TernaryOpInt64 ¶ added in v1.17.0
func TernaryOpInt64Func ¶ added in v1.17.0
func TernaryOpInt64FuncWithParams ¶ added in v1.17.0
func TernaryOpInt8 ¶ added in v1.17.0
func TernaryOpInt8Func ¶ added in v1.17.0
func TernaryOpInt8FuncWithParams ¶ added in v1.17.0
func TernaryOpIntFunc ¶ added in v1.17.0
func TernaryOpIntFuncWithParams ¶ added in v1.17.0
func TernaryOpInterface ¶ added in v1.17.0
func TernaryOpInterface(conv bool, v1, v2 interface{}) interface{}
func TernaryOpInterfaceFunc ¶ added in v1.17.0
func TernaryOpInterfaceFunc(conv bool, f1, f2 func() interface{}) interface{}
func TernaryOpInterfaceFuncWithParams ¶ added in v1.17.0
func TernaryOpInterfaceFuncWithParams(conv bool, f1, f2 func(...interface{}) interface{}, params ...interface{}) interface{}
func TernaryOpString ¶ added in v1.17.0
func TernaryOpStringFunc ¶ added in v1.17.0
func TernaryOpStringFuncWithParams ¶ added in v1.17.0
func TernaryOpUint ¶ added in v1.17.0
func TernaryOpUint16 ¶ added in v1.17.0
func TernaryOpUint16Func ¶ added in v1.17.0
func TernaryOpUint16FuncWithParams ¶ added in v1.17.0
func TernaryOpUint32 ¶ added in v1.17.0
func TernaryOpUint32Func ¶ added in v1.17.0
func TernaryOpUint32FuncWithParams ¶ added in v1.17.0
func TernaryOpUint64 ¶ added in v1.17.0
func TernaryOpUint64Func ¶ added in v1.17.0
func TernaryOpUint64FuncWithParams ¶ added in v1.17.0
func TernaryOpUint8 ¶ added in v1.17.0
func TernaryOpUint8Func ¶ added in v1.17.0
func TernaryOpUint8FuncWithParams ¶ added in v1.17.0
func TernaryOpUintFunc ¶ added in v1.17.0
func TernaryOpUintFuncWithParams ¶ added in v1.17.0
func ToBoolPointer ¶ added in v1.18.0
func ToBytePointer ¶ added in v1.16.0
func ToFloat32Pointer ¶ added in v1.16.0
func ToFloat64Pointer ¶ added in v1.16.0
func ToInt16Pointer ¶ added in v1.16.0
func ToInt32Pointer ¶ added in v1.16.0
func ToInt64Pointer ¶ added in v1.16.0
func ToInt8Pointer ¶ added in v1.16.0
func ToIntPointer ¶ added in v1.16.0
func ToIntSlice ¶ added in v1.13.0
func ToInterfaceSlice ¶ added in v1.13.0
func ToInterfaceSlice(fromInterface interface{}) (ret []interface{}, retErr error)
func ToLowerFirst ¶ added in v1.2.0
func ToStringPointer ¶ added in v1.16.0
func ToUint16Pointer ¶ added in v1.16.0
func ToUint32Pointer ¶ added in v1.16.0
func ToUint64Pointer ¶ added in v1.16.0
func ToUint8Pointer ¶ added in v1.16.0
func ToUintPointer ¶ added in v1.16.0
func ToUpperFirst ¶ added in v1.2.0
func VersionMajorCode ¶ added in v1.0.0
func VersionMajorCode() int
func VersionMinorCode ¶ added in v1.0.0
func VersionMinorCode() int
func VersionRevisionCode ¶ added in v1.0.0
func VersionRevisionCode() int
Types ¶
type CacheEditor ¶ added in v1.20.0
type CacheEditorFactory ¶ added in v1.20.0
type CacheEditorFactory interface { OpenCacheEditor(path string, flag int, mode interface{}) (CacheEditor, error) Close() error }
type ConfigHelper ¶ added in v1.4.2
type ConfigHelper struct {
// contains filtered or unexported fields
}
func NewConfigHelper ¶ added in v1.4.2
func NewConfigHelper(configData interface{}, configFilePath string) *ConfigHelper
func (*ConfigHelper) ExpandConfigData ¶ added in v1.4.2
func (helper *ConfigHelper) ExpandConfigData() error
func (*ConfigHelper) ExpandConfigData2 ¶ added in v1.9.1
func (helper *ConfigHelper) ExpandConfigData2() (error, bool)
func (*ConfigHelper) StoreConfigData ¶ added in v1.10.0
func (helper *ConfigHelper) StoreConfigData() error
type CsvReader ¶ added in v1.27.0
type CsvReader struct {
// contains filtered or unexported fields
}
func NewCsvReader ¶ added in v1.27.0
func (*CsvReader) DecodeLine ¶ added in v1.27.0
type HttpResponseHelper ¶ added in v1.26.0
type HttpResponseHelper struct {
// contains filtered or unexported fields
}
func NewHttpResponseHelper ¶ added in v1.26.0
func NewHttpResponseHelper(params ...interface{}) *HttpResponseHelper
func (*HttpResponseHelper) ExportHttpResponse ¶ added in v1.26.0
func (res *HttpResponseHelper) ExportHttpResponse() *http.Response
func (*HttpResponseHelper) Header ¶ added in v1.26.0
func (res *HttpResponseHelper) Header() http.Header
func (*HttpResponseHelper) Status ¶ added in v1.26.0
func (res *HttpResponseHelper) Status(status string)
func (*HttpResponseHelper) Write ¶ added in v1.26.0
func (res *HttpResponseHelper) Write(data []byte) (int, error)
func (*HttpResponseHelper) WriteHeader ¶ added in v1.26.0
func (res *HttpResponseHelper) WriteHeader(statusCode int)
type InputHandler ¶ added in v1.10.0
type InterfaceHelper ¶ added in v1.10.0
type InterfaceHelper struct {
// contains filtered or unexported fields
}
func NewInterfaceHelper ¶ added in v1.10.0
func NewInterfaceHelper(valueInterface interface{}) *InterfaceHelper
func (*InterfaceHelper) Equal ¶ added in v1.27.0
func (helper *InterfaceHelper) Equal(from interface{}) bool
func (*InterfaceHelper) EqualWithRoughClassification ¶ added in v1.27.0
func (helper *InterfaceHelper) EqualWithRoughClassification(from interface{}) bool
func (*InterfaceHelper) GetBool ¶ added in v1.10.0
func (helper *InterfaceHelper) GetBool() (bool, bool)
func (*InterfaceHelper) GetBoolArray ¶ added in v1.10.0
func (helper *InterfaceHelper) GetBoolArray() ([]bool, bool)
func (*InterfaceHelper) GetInterfaceArray ¶ added in v1.13.0
func (helper *InterfaceHelper) GetInterfaceArray() ([]interface{}, bool)
func (*InterfaceHelper) GetKind ¶ added in v1.10.0
func (helper *InterfaceHelper) GetKind() reflect.Kind
func (*InterfaceHelper) GetNumber ¶ added in v1.10.0
func (helper *InterfaceHelper) GetNumber() (float64, bool)
func (*InterfaceHelper) GetNumberArray ¶ added in v1.10.0
func (helper *InterfaceHelper) GetNumberArray() ([]float64, bool)
func (*InterfaceHelper) GetString ¶ added in v1.10.0
func (helper *InterfaceHelper) GetString() (string, bool)
func (*InterfaceHelper) GetStringArray ¶ added in v1.10.0
func (helper *InterfaceHelper) GetStringArray() ([]string, bool)
func (*InterfaceHelper) GetTime ¶ added in v1.11.0
func (helper *InterfaceHelper) GetTime() (time.Time, bool)
func (*InterfaceHelper) GetTimeArray ¶ added in v1.11.0
func (helper *InterfaceHelper) GetTimeArray() ([]time.Time, bool)
func (*InterfaceHelper) IsArrayOrSlice ¶ added in v1.10.0
func (helper *InterfaceHelper) IsArrayOrSlice() bool
func (*InterfaceHelper) IsBool ¶ added in v1.10.0
func (helper *InterfaceHelper) IsBool() bool
func (*InterfaceHelper) IsFloat ¶ added in v1.10.0
func (helper *InterfaceHelper) IsFloat() bool
func (*InterfaceHelper) IsInt ¶ added in v1.10.0
func (helper *InterfaceHelper) IsInt() bool
func (*InterfaceHelper) IsNumber ¶ added in v1.10.0
func (helper *InterfaceHelper) IsNumber() bool
func (*InterfaceHelper) IsString ¶ added in v1.10.0
func (helper *InterfaceHelper) IsString() bool
func (*InterfaceHelper) IsTime ¶ added in v1.11.0
func (helper *InterfaceHelper) IsTime() bool
func (*InterfaceHelper) IsUint ¶ added in v1.10.0
func (helper *InterfaceHelper) IsUint() bool
func (*InterfaceHelper) Set ¶ added in v1.10.0
func (helper *InterfaceHelper) Set(from interface{}) bool
func (*InterfaceHelper) SetWithRoughClassification ¶ added in v1.27.0
func (helper *InterfaceHelper) SetWithRoughClassification(from interface{}) bool
type LocalFileCache ¶ added in v1.20.0
type LocalFileCache struct {
// contains filtered or unexported fields
}
func (*LocalFileCache) Close ¶ added in v1.20.0
func (file *LocalFileCache) Close() error
func (*LocalFileCache) ID ¶ added in v1.20.0
func (file *LocalFileCache) ID() string
func (*LocalFileCache) Read ¶ added in v1.20.0
func (file *LocalFileCache) Read(p []byte) (int, error)
func (*LocalFileCache) Remove ¶ added in v1.20.0
func (file *LocalFileCache) Remove() error
type LocalFileCacheEditorFactory ¶ added in v1.20.0
type LocalFileCacheEditorFactory struct {
// contains filtered or unexported fields
}
func NewLocalFileCacheEditorFactory ¶ added in v1.20.0
func NewLocalFileCacheEditorFactory(cacehRootFolder string) (ret *LocalFileCacheEditorFactory, retErr error)
func (*LocalFileCacheEditorFactory) Close ¶ added in v1.24.2
func (factory *LocalFileCacheEditorFactory) Close() error
func (*LocalFileCacheEditorFactory) OpenCacheEditor ¶ added in v1.20.3
func (factory *LocalFileCacheEditorFactory) OpenCacheEditor(relPathUnderCacheRoot string, flag int, mode interface{}) (CacheEditor, error)
type Logger ¶
type Logger struct { LogLevel int // contains filtered or unexported fields }
func NewLocalLogger ¶ added in v1.29.0
func NewLocalLogger() *Logger
func (*Logger) ChangeLogLevel ¶
func (*Logger) ChangeLogLevelByText ¶ added in v1.4.3
func (*Logger) ChangeOutput ¶ added in v1.10.0
func (*Logger) GetLogLevel ¶
func (*Logger) OutputTime ¶ added in v1.29.0
type MemoryCacheEditorFactory ¶ added in v1.20.0
type MemoryCacheEditorFactory struct {
// contains filtered or unexported fields
}
func NewMemoryCacheEditorFactory ¶ added in v1.20.0
func NewMemoryCacheEditorFactory() *MemoryCacheEditorFactory
func (*MemoryCacheEditorFactory) Close ¶ added in v1.24.2
func (factory *MemoryCacheEditorFactory) Close() (retErr error)
func (*MemoryCacheEditorFactory) GetLimitCacheSize ¶ added in v1.20.0
func (factory *MemoryCacheEditorFactory) GetLimitCacheSize() int64
func (*MemoryCacheEditorFactory) IsAppendCache ¶ added in v1.20.0
func (factory *MemoryCacheEditorFactory) IsAppendCache(appendSize int64) (ret bool)
func (*MemoryCacheEditorFactory) OpenCacheEditor ¶ added in v1.20.3
func (factory *MemoryCacheEditorFactory) OpenCacheEditor(id string, flag int, mode interface{}) (CacheEditor, error)
func (*MemoryCacheEditorFactory) Remove ¶ added in v1.20.0
func (factory *MemoryCacheEditorFactory) Remove(id string) (retErr error)
func (*MemoryCacheEditorFactory) SetLimitCacheSize ¶ added in v1.20.0
func (factory *MemoryCacheEditorFactory) SetLimitCacheSize(limitCacheSize int64)
func (*MemoryCacheEditorFactory) SizeChanged ¶ added in v1.20.0
func (factory *MemoryCacheEditorFactory) SizeChanged(id string, diffSize int64)
type MultipartHelper ¶ added in v1.10.0
type MultipartHelper struct {
// contains filtered or unexported fields
}
func NewMultipartHelper ¶ added in v1.10.0
func NewMultipartHelper(reader io.Reader, boundary string, cacheEditorFactory CacheEditorFactory) (*MultipartHelper, error)
func NewMultipartHelperFromHttpRequest ¶ added in v1.10.0
func NewMultipartHelperFromHttpRequest(r *http.Request) (*MultipartHelper, error)
func NewMultipartHelperFromHttpRequestWithFactory ¶ added in v1.20.0
func NewMultipartHelperFromHttpRequestWithFactory(r *http.Request, cacheEditorFactory CacheEditorFactory) (*MultipartHelper, error)
func NewMultipartWriteHelper ¶ added in v1.24.2
func NewMultipartWriteHelper(cacheEditorFactory CacheEditorFactory) (ret *MultipartHelper)
func (*MultipartHelper) AppendFormData ¶ added in v1.24.2
func (helper *MultipartHelper) AppendFormData(formName, mimeType string, data []byte) error
func (*MultipartHelper) Close ¶ added in v1.10.0
func (helper *MultipartHelper) Close() error
func (*MultipartHelper) Count ¶ added in v1.10.0
func (helper *MultipartHelper) Count() int
func (*MultipartHelper) GetByIndex ¶ added in v1.10.0
func (helper *MultipartHelper) GetByIndex(index int) (*FormData, error)
func (*MultipartHelper) GetByName ¶ added in v1.10.0
func (helper *MultipartHelper) GetByName(partName string) (*FormData, error)
func (*MultipartHelper) PartNames ¶ added in v1.10.0
func (helper *MultipartHelper) PartNames() []string
type NopCloser ¶ added in v1.26.0
type NopCloser struct {
// contains filtered or unexported fields
}
func NewNopCloser ¶ added in v1.26.0
func NewNopCloser(target interface{}) *NopCloser
type RangeValue ¶ added in v1.10.0
type RangeValue struct {
// contains filtered or unexported fields
}
func ParseNumberRange ¶ added in v1.10.0
func ParseNumberRange(str string) (value *RangeValue, retErr error)
func (*RangeValue) In ¶ added in v1.10.0
func (rValue *RangeValue) In(targetValue float64) bool
func (*RangeValue) Out ¶ added in v1.10.0
func (rValue *RangeValue) Out(targetValue float64) bool
type ReadHelper ¶ added in v1.13.0
type ReadHelper struct {
// contains filtered or unexported fields
}
func NewReadHelper ¶ added in v1.13.0
func NewReadHelper(reader io.Reader) *ReadHelper
func NewReadHelperFromFile ¶ added in v1.13.0
func NewReadHelperFromFile(filePath string) (ret *ReadHelper, retErr error)
func NewReadHelperFromReadCloser ¶ added in v1.13.0
func NewReadHelperFromReadCloser(reader io.ReadCloser) *ReadHelper
func (*ReadHelper) Close ¶ added in v1.13.0
func (helper *ReadHelper) Close() (ret error)
func (*ReadHelper) LineSeparator ¶ added in v1.14.0
func (helper *ReadHelper) LineSeparator(lineSeparator string) string
func (*ReadHelper) ReadLine ¶ added in v1.13.0
func (helper *ReadHelper) ReadLine() (ret string, retErr error)
type ReflectHelper ¶ added in v0.1.0
type ReflectHelper struct {
// contains filtered or unexported fields
}
func NewReflectHelper ¶ added in v0.1.0
func NewReflectHelper(targetInterface interface{}) *ReflectHelper
func (*ReflectHelper) BoolValue ¶ added in v0.1.0
func (this *ReflectHelper) BoolValue(index int) bool
func (*ReflectHelper) CanSet ¶ added in v0.1.0
func (this *ReflectHelper) CanSet(name string, value interface{}) bool
func (*ReflectHelper) FieldIndex ¶ added in v1.10.0
func (this *ReflectHelper) FieldIndex(name string) int
func (*ReflectHelper) FieldName ¶ added in v1.10.0
func (this *ReflectHelper) FieldName(index int) string
func (*ReflectHelper) FloatValue ¶ added in v0.1.0
func (this *ReflectHelper) FloatValue(index int) float64
func (*ReflectHelper) GetAddrByIndex ¶ added in v1.10.0
func (this *ReflectHelper) GetAddrByIndex(index int) reflect.Value
func (*ReflectHelper) GetByIndex ¶ added in v0.1.0
func (this *ReflectHelper) GetByIndex(index int) interface{}
func (*ReflectHelper) GetByName ¶ added in v0.1.0
func (this *ReflectHelper) GetByName(name string) interface{}
func (*ReflectHelper) GetByTagName ¶ added in v1.3.1
func (this *ReflectHelper) GetByTagName(key string, name string) interface{}
func (*ReflectHelper) GetPtrByIndex ¶ added in v1.10.0
func (this *ReflectHelper) GetPtrByIndex(index int) reflect.Value
func (*ReflectHelper) GetValueByIndex ¶ added in v1.10.0
func (this *ReflectHelper) GetValueByIndex(index int) reflect.Value
func (*ReflectHelper) IntValue ¶ added in v0.1.0
func (this *ReflectHelper) IntValue(index int) int64
func (*ReflectHelper) InterfaceName ¶ added in v0.1.0
func (this *ReflectHelper) InterfaceName() string
func (*ReflectHelper) IsBool ¶ added in v0.1.0
func (this *ReflectHelper) IsBool(index int) bool
func (*ReflectHelper) IsFloat ¶ added in v1.10.0
func (this *ReflectHelper) IsFloat(index int) bool
func (*ReflectHelper) IsFloat32 ¶ added in v0.1.0
func (this *ReflectHelper) IsFloat32(index int) bool
func (*ReflectHelper) IsFloat64 ¶ added in v0.1.0
func (this *ReflectHelper) IsFloat64(index int) bool
func (*ReflectHelper) IsInt ¶ added in v1.10.0
func (this *ReflectHelper) IsInt(index int) bool
func (*ReflectHelper) IsInt16 ¶ added in v0.1.0
func (this *ReflectHelper) IsInt16(index int) bool
func (*ReflectHelper) IsInt32 ¶ added in v0.1.0
func (this *ReflectHelper) IsInt32(index int) bool
func (*ReflectHelper) IsInt64 ¶ added in v0.1.0
func (this *ReflectHelper) IsInt64(index int) bool
func (*ReflectHelper) IsInt8 ¶ added in v0.1.0
func (this *ReflectHelper) IsInt8(index int) bool
func (*ReflectHelper) IsIntUint ¶ added in v1.10.0
func (this *ReflectHelper) IsIntUint(index int) bool
func (*ReflectHelper) IsNumber ¶ added in v1.10.0
func (this *ReflectHelper) IsNumber(index int) bool
func (*ReflectHelper) IsString ¶ added in v0.1.0
func (this *ReflectHelper) IsString(index int) bool
func (*ReflectHelper) IsTime ¶ added in v1.10.0
func (this *ReflectHelper) IsTime(index int) bool
func (*ReflectHelper) IsUint ¶ added in v1.10.0
func (this *ReflectHelper) IsUint(index int) bool
func (*ReflectHelper) IsUint16 ¶ added in v0.1.0
func (this *ReflectHelper) IsUint16(index int) bool
func (*ReflectHelper) IsUint32 ¶ added in v0.1.0
func (this *ReflectHelper) IsUint32(index int) bool
func (*ReflectHelper) IsUint64 ¶ added in v0.1.0
func (this *ReflectHelper) IsUint64(index int) bool
func (*ReflectHelper) IsUint8 ¶ added in v0.1.0
func (this *ReflectHelper) IsUint8(index int) bool
func (*ReflectHelper) NumField ¶ added in v0.1.0
func (this *ReflectHelper) NumField() int
func (*ReflectHelper) SetByIndex ¶ added in v0.1.0
func (this *ReflectHelper) SetByIndex(index int, valueInf interface{}) bool
func (*ReflectHelper) SetByName ¶ added in v0.1.0
func (this *ReflectHelper) SetByName(name string, value interface{}) bool
func (*ReflectHelper) SetByTagName ¶ added in v1.27.0
func (this *ReflectHelper) SetByTagName(key string, name string, valueInf interface{}) bool
func (*ReflectHelper) SetOnList ¶ added in v1.27.0
func (this *ReflectHelper) SetOnList(index int, valueInf interface{}) bool
func (*ReflectHelper) SetOnMap ¶ added in v1.27.0
func (this *ReflectHelper) SetOnMap(key interface{}, valueInf interface{}) bool
func (*ReflectHelper) String ¶ added in v0.1.0
func (this *ReflectHelper) String(index int) string
func (*ReflectHelper) StringValue ¶ added in v0.1.0
func (this *ReflectHelper) StringValue(index int) string
func (*ReflectHelper) Tag ¶ added in v0.1.0
func (this *ReflectHelper) Tag(index int) reflect.StructTag
func (*ReflectHelper) TimeValue ¶ added in v1.10.0
func (this *ReflectHelper) TimeValue(index int) time.Time
func (*ReflectHelper) UintValue ¶ added in v0.1.0
func (this *ReflectHelper) UintValue(index int) uint64
type StringBuilder ¶
type StringBuilder struct {
// contains filtered or unexported fields
}
func (*StringBuilder) Append ¶
func (this *StringBuilder) Append(text string) *StringBuilder
func (*StringBuilder) AppendByte ¶ added in v1.1.0
func (this *StringBuilder) AppendByte(text byte) *StringBuilder
func (*StringBuilder) Appendf ¶ added in v1.10.0
func (this *StringBuilder) Appendf(fmtText string, params ...interface{}) *StringBuilder
func (*StringBuilder) Bytes ¶ added in v1.0.0
func (this *StringBuilder) Bytes() []byte
func (*StringBuilder) Delete ¶
func (this *StringBuilder) Delete()
func (*StringBuilder) Length ¶ added in v1.0.0
func (this *StringBuilder) Length() int
func (*StringBuilder) String ¶
func (this *StringBuilder) String() string
type StringBuilderIF ¶
type StringBuilderIF interface { Append(text string) StringBuilder AppendByte(text byte) StringBuilder Delete() String() string Length() int Bytes() []byte }
type TimeHelper ¶ added in v1.23.0
type TimeHelper struct {
// contains filtered or unexported fields
}
func (*TimeHelper) DateInAsiaTokyo ¶ added in v1.23.2
func (*TimeHelper) InAsiaTokyo ¶ added in v1.24.0
func (*TimeHelper) IsSupportTimezone ¶ added in v1.29.0
func (ins *TimeHelper) IsSupportTimezone(timezoneText string) (ret bool)
func (*TimeHelper) Now ¶ added in v1.29.0
func (ins *TimeHelper) Now(tzText string) (ret time.Time, retErr error)
func (*TimeHelper) NowInAsiaTokyo ¶ added in v1.23.0
func (ins *TimeHelper) NowInAsiaTokyo() (ret time.Time, retErr error)
Source Files ¶
- CUIParameter.go
- CacheEditor.go
- CacheEditor_LocalFile.go
- CacheEditor_Memory.go
- ConfigHelper.go
- CsvHelper.go
- FileUtil.go
- FunctionHelper.go
- HttpResponseHelper.go
- IOUtil.go
- InterfaceHelper.go
- LogUtil.go
- MapUtil.go
- MultipartHelper.go
- PasswordCreator.go
- PointerUtil.go
- ReadHelper.go
- ReflectHelper.go
- RuneUtil.go
- SliceUtil.go
- StringBuilder.go
- StringUtil.go
- TernaryOperator.go
- TimeHelper.go
- UserInput.go
- Version.go
Click to show internal directories.
Click to hide internal directories.