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 ¶
- func ComplexDeferExistFunction(i, s int, bb string) (string, error)
- func ComplexDeferFunction(i, s int, bb string) (string, error)
- func ComplexGoRoutineFunction(i, s int, bb string) (string, error)
- func DatePrinter(time time.Time, isAM bool, isUTC bool) string
- func DatePrinterErr(time time.Time, isAM bool, isUTC bool) string
- func DatePrinterErrv2(time time.Time, isAM bool, isUTC bool) string
- func DatePrinterv2(time time.Time, isAM bool, isUTC bool) string
- func DeepCopy(util mockpkg.Util) (err error)
- func DeepMapPrint(reqCtx map[int]map[string]ValueInfo) (int, error)
- func FuncForExported(num reflect.StructField, s string) error
- func FunctionReturnError() int
- func GetAbParamsMap(str string) map[string]interface{}
- func GoodFunc(i, s int, bb string) (string, error)
- func GoodFuncPanic(i, s int, bb string) (string, string)
- func GoodFuncPanicv2(i, s int, bb string) (string, error, string)
- func GoodFuncV3(i, s int, bb string) (string, error, string)
- func GoodFuncv2(i, s int, bb string) (string, error, string)
- func IfStatement() string
- func IfStatement2() string
- func PrintInter(reqCtx EEReqContext) (int, error)
- func PrintName(structType constructors.StructType, renameType constructors.RenameType, ...)
- func Query(db DBInterface) error
- func QueryData(u UserInfo) string
- func QueryDataPointer(u *UserInfo) string
- func StructToMap(value interface{}) map[interface{}]error
- type A
- type AdBigStruct
- type Bag
- type DBInterface
- type EEReqContext
- type Iss
- type Pocket
- type SpecialConsumption
- type SpecialContext
- type UserInfo
- type UserInfoPointer
- type ValueInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncForExported ¶
func FuncForExported(num reflect.StructField, s string) error
func FunctionReturnError ¶
func FunctionReturnError() int
func GetAbParamsMap ¶
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 QueryDataPointer ¶
func StructToMap ¶
func StructToMap(value interface{}) map[interface{}]error
Types ¶
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 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 SpecialConsumption ¶
type SpecialConsumption struct {
ItemID int
}
func (SpecialConsumption) CompareInteger ¶
func (SpecialConsumption) CompareInteger(a, b int) int
type SpecialContext ¶
type SpecialContext struct {
ItemID int
}