Documentation ¶
Overview ¶
Package sgc7utils is a generated GoMock package.
Index ¶
- func AppendString(strs ...string) string
- func ClearLogs() error
- func Debug(message string, fields ...zap.Field)
- func Error(message string, fields ...zap.Field)
- func Fatal(message string, fields ...zap.Field)
- func FormatNow(t ITime) string
- func GetLogger() *zap.Logger
- func IndexOfInt2Slice(arr []int, x, y int, start int) int
- func IndexOfIntSlice(arr []int, v int, start int) int
- func IndexOfStringSlice(arr []string, v string, start int) int
- func Info(message string, fields ...zap.Field)
- func InitLogger(logname string, appVersion string, level string, isConsole bool, ...)
- func InsUniqueIntSlice(arr []int, v int) []int
- func IsSameFile(fna string, fnb string) bool
- func JSON(name string, jobj interface{}) zap.Field
- func SyncLogger()
- func Warn(message string, fields ...zap.Field)
- type ITime
- type MockITime
- type MockITimeMockRecorder
- type RngInfo
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendString ¶ added in v0.1.10
AppendString - append string
func IndexOfInt2Slice ¶ added in v0.2.21
IndexOfInt2Slice - indexof for []int2, []int2 is like [x0, y0, x1, y1, ...]
start * 2 <--> len([]int)
func IndexOfIntSlice ¶ added in v0.2.21
IndexOfIntSlice - indexof for []int
func IndexOfStringSlice ¶ added in v0.2.21
IndexOfStringSlice - indexof for []string
func InitLogger ¶ added in v0.1.10
InitLogger - initializes a thread-safe singleton logger
func InsUniqueIntSlice ¶ added in v0.3.31
InsUniqueIntSlice - Insert unique int array
func IsSameFile ¶ added in v0.2.21
IsSameFile - filea == fileb
Types ¶
type MockITime ¶ added in v0.2.39
type MockITime struct {
// contains filtered or unexported fields
}
MockITime is a mock of ITime interface
func NewMockITime ¶ added in v0.2.39
func NewMockITime(ctrl *gomock.Controller) *MockITime
NewMockITime creates a new mock instance
func (*MockITime) EXPECT ¶ added in v0.2.39
func (m *MockITime) EXPECT() *MockITimeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockITimeMockRecorder ¶ added in v0.2.39
type MockITimeMockRecorder struct {
// contains filtered or unexported fields
}
MockITimeMockRecorder is the mock recorder for MockITime
func (*MockITimeMockRecorder) Now ¶ added in v0.2.39
func (mr *MockITimeMockRecorder) Now() *gomock.Call
Now indicates an expected call of Now
Source Files ¶
Click to show internal directories.
Click to hide internal directories.