template

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComplexDeferExistFunction

func ComplexDeferExistFunction(i, s int, bb string) (string, error)

func ComplexDeferFunction

func ComplexDeferFunction(i, s int, bb string) (string, error)

func ComplexGoRoutineFunction

func ComplexGoRoutineFunction(i, s int, bb string) (string, error)

func DatePrinter

func DatePrinter(time time.Time, isAM bool, isUTC bool) string

func DatePrinterErr

func DatePrinterErr(time time.Time, isAM bool, isUTC bool) string

func DatePrinterErrv2

func DatePrinterErrv2(time time.Time, isAM bool, isUTC bool) string

func DatePrinterv2

func DatePrinterv2(time time.Time, isAM bool, isUTC bool) string

func DeepCopy

func DeepCopy(util mockpkg.Util) (err error)

func DeepMapPrint

func DeepMapPrint(reqCtx map[int]map[string]ValueInfo) (int, error)

func FuncForExported

func FuncForExported(num reflect.StructField, s string) error

func FunctionReturnError

func FunctionReturnError() int

func GetAbParamsMap

func GetAbParamsMap(str string) map[string]interface{}

func GoodFunc

func GoodFunc(i, s int, bb string) (string, error)

func GoodFuncPanic

func GoodFuncPanic(i, s int, bb string) (string, string)

func GoodFuncPanicv2

func GoodFuncPanicv2(i, s int, bb string) (string, error, string)

func GoodFuncV3

func GoodFuncV3(i, s int, bb string) (string, error, string)

func GoodFuncv2

func GoodFuncv2(i, s int, bb string) (string, error, string)

func IfStatement

func IfStatement() string

func IfStatement2

func IfStatement2() string

func PrintInter

func PrintInter(reqCtx EEReqContext) (int, error)

func PrintName

func PrintName(structType constructors.StructType, renameType constructors.RenameType, pointerType *constructors.StructType, basicType string)

func Query

func Query(db DBInterface) error

func QueryData

func QueryData(u UserInfo) string

func QueryDataPointer

func QueryDataPointer(u *UserInfo) string

func StructToMap

func StructToMap(value interface{}) map[interface{}]error

Types

type A

type A struct {
}

func (*A) DeepCopyS

func (a *A) DeepCopyS(util mockpkg.Util) (err error)

type AdBigStruct

type AdBigStruct struct {
	ID           int
	Add          string
	IsSuccess    bool
	Cvr          float64
	Ssr          float64
	InitPctr     float64
	DpaCid       int64
	DpaProductId string
	DpaDirectId  int64
}

func (*AdBigStruct) CheckBigStruct

func (ad *AdBigStruct) CheckBigStruct(param int) int

type Bag

type Bag struct {
	P Pocket
	A int
	B int
}

type DBInterface

type DBInterface interface {
	Find() DBInterface
	Where() DBInterface
}

DBInterface we can't get callee of call by interface

type EEReqContext

type EEReqContext interface {
	GetReqId() string
}

type Iss

type Iss struct {
}

func (*Iss) DatePrinterErrs

func (c *Iss) DatePrinterErrs(time time.Time, isAM bool, isUTC bool) string

func (*Iss) DatePrinters

func (c *Iss) DatePrinters(time time.Time, isAM bool, isUTC bool) string

func (*Iss) GoodFuncs

func (c *Iss) GoodFuncs(i, s int, bb string) (string, string, error)

type Pocket

type Pocket struct {
	Money  int
	UnUseA int32
	UnUseB int32
	UnUseC int32
}

type SpecialConsumption

type SpecialConsumption struct {
	ItemID int
}

func (SpecialConsumption) CompareInteger

func (SpecialConsumption) CompareInteger(a, b int) int

func (SpecialConsumption) Consume

func (SpecialConsumption) Consume(ctx context.Context) error

type SpecialContext

type SpecialContext struct {
	ItemID int
}

func (*SpecialContext) Consume

func (*SpecialContext) Consume(ctx context.Context) error

type UserInfo

type UserInfo struct {
	Name    string
	Ctx     SpecialContext
	Bag     Bag
	ClientA redis.Client
	ClientB redisv2.Client
}

type UserInfoPointer

type UserInfoPointer struct {
	Name    string
	Ctx     *SpecialContext
	Bag     *Bag
	ClientA *redis.Client
	ClientB *redisv2.Client
}

type ValueInfo

type ValueInfo struct {
	Key string
}

Directories

Path Synopsis
* Copyright 2022 ByteDance Inc.
* Copyright 2022 ByteDance Inc.

Jump to

Keyboard shortcuts

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