transform

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: BSD-3-Clause Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressToPb

func AddressToPb(src model.Address, opts ...TransformParam) example.Address

func AddressToPbList

func AddressToPbList(src []model.Address, opts ...TransformParam) []*example.Address

AddressToPbList is DEPRECATED. Use AddressToPbValPtrList instead.

func AddressToPbPtr

func AddressToPbPtr(src *model.Address, opts ...TransformParam) *example.Address

func AddressToPbPtrList

func AddressToPbPtrList(src []*model.Address, opts ...TransformParam) []*example.Address

func AddressToPbPtrVal

func AddressToPbPtrVal(src *model.Address, opts ...TransformParam) example.Address

func AddressToPbValList

func AddressToPbValList(src []model.Address, opts ...TransformParam) []example.Address

func AddressToPbValPtr

func AddressToPbValPtr(src model.Address, opts ...TransformParam) *example.Address

func AddressToPbValPtrList

func AddressToPbValPtrList(src []model.Address, opts ...TransformParam) []*example.Address

func CustomerToPb

func CustomerToPb(src model.Customer, opts ...TransformParam) example.Customer

func CustomerToPbList

func CustomerToPbList(src []model.Customer, opts ...TransformParam) []*example.Customer

CustomerToPbList is DEPRECATED. Use CustomerToPbValPtrList instead.

func CustomerToPbPtr

func CustomerToPbPtr(src *model.Customer, opts ...TransformParam) *example.Customer

func CustomerToPbPtrList

func CustomerToPbPtrList(src []*model.Customer, opts ...TransformParam) []*example.Customer

func CustomerToPbPtrVal

func CustomerToPbPtrVal(src *model.Customer, opts ...TransformParam) example.Customer

func CustomerToPbValList

func CustomerToPbValList(src []model.Customer, opts ...TransformParam) []example.Customer

func CustomerToPbValPtr

func CustomerToPbValPtr(src model.Customer, opts ...TransformParam) *example.Customer

func CustomerToPbValPtrList

func CustomerToPbValPtrList(src []model.Customer, opts ...TransformParam) []*example.Customer

func IntsModelToPb added in v1.0.3

func IntsModelToPb(src model.IntsModel, opts ...TransformParam) example.Ints

func IntsModelToPbList added in v1.0.3

func IntsModelToPbList(src []model.IntsModel, opts ...TransformParam) []*example.Ints

IntsModelToPbList is DEPRECATED. Use IntsModelToPbValPtrList instead.

func IntsModelToPbPtr added in v1.0.3

func IntsModelToPbPtr(src *model.IntsModel, opts ...TransformParam) *example.Ints

func IntsModelToPbPtrList added in v1.0.3

func IntsModelToPbPtrList(src []*model.IntsModel, opts ...TransformParam) []*example.Ints

func IntsModelToPbPtrVal added in v1.0.3

func IntsModelToPbPtrVal(src *model.IntsModel, opts ...TransformParam) example.Ints

func IntsModelToPbValList added in v1.0.3

func IntsModelToPbValList(src []model.IntsModel, opts ...TransformParam) []example.Ints

func IntsModelToPbValPtr added in v1.0.3

func IntsModelToPbValPtr(src model.IntsModel, opts ...TransformParam) *example.Ints

func IntsModelToPbValPtrList added in v1.0.3

func IntsModelToPbValPtrList(src []model.IntsModel, opts ...TransformParam) []*example.Ints

func MyLineItemToPb

func MyLineItemToPb(src model.MyLineItem, opts ...TransformParam) example.LineItem

func MyLineItemToPbList

func MyLineItemToPbList(src []model.MyLineItem, opts ...TransformParam) []*example.LineItem

MyLineItemToPbList is DEPRECATED. Use MyLineItemToPbValPtrList instead.

func MyLineItemToPbPtr

func MyLineItemToPbPtr(src *model.MyLineItem, opts ...TransformParam) *example.LineItem

func MyLineItemToPbPtrList

func MyLineItemToPbPtrList(src []*model.MyLineItem, opts ...TransformParam) []*example.LineItem

func MyLineItemToPbPtrVal

func MyLineItemToPbPtrVal(src *model.MyLineItem, opts ...TransformParam) example.LineItem

func MyLineItemToPbValList

func MyLineItemToPbValList(src []model.MyLineItem, opts ...TransformParam) []example.LineItem

func MyLineItemToPbValPtr

func MyLineItemToPbValPtr(src model.MyLineItem, opts ...TransformParam) *example.LineItem

func MyLineItemToPbValPtrList

func MyLineItemToPbValPtrList(src []model.MyLineItem, opts ...TransformParam) []*example.LineItem

func MyLineItemUsageToPb

func MyLineItemUsageToPb(src model.MyLineItemUsage, opts ...TransformParam) example.LineItemUsage

func MyLineItemUsageToPbList

func MyLineItemUsageToPbList(src []model.MyLineItemUsage, opts ...TransformParam) []*example.LineItemUsage

MyLineItemUsageToPbList is DEPRECATED. Use MyLineItemUsageToPbValPtrList instead.

func MyLineItemUsageToPbPtr

func MyLineItemUsageToPbPtr(src *model.MyLineItemUsage, opts ...TransformParam) *example.LineItemUsage

func MyLineItemUsageToPbPtrList

func MyLineItemUsageToPbPtrList(src []*model.MyLineItemUsage, opts ...TransformParam) []*example.LineItemUsage

func MyLineItemUsageToPbPtrVal

func MyLineItemUsageToPbPtrVal(src *model.MyLineItemUsage, opts ...TransformParam) example.LineItemUsage

func MyLineItemUsageToPbValList

func MyLineItemUsageToPbValList(src []model.MyLineItemUsage, opts ...TransformParam) []example.LineItemUsage

func MyLineItemUsageToPbValPtr

func MyLineItemUsageToPbValPtr(src model.MyLineItemUsage, opts ...TransformParam) *example.LineItemUsage

func MyLineItemUsageToPbValPtrList

func MyLineItemUsageToPbValPtrList(src []model.MyLineItemUsage, opts ...TransformParam) []*example.LineItemUsage

func OrderToPb

func OrderToPb(src model.Order, opts ...TransformParam) example.Order

func OrderToPbList

func OrderToPbList(src []model.Order, opts ...TransformParam) []*example.Order

OrderToPbList is DEPRECATED. Use OrderToPbValPtrList instead.

func OrderToPbPtr

func OrderToPbPtr(src *model.Order, opts ...TransformParam) *example.Order

func OrderToPbPtrList

func OrderToPbPtrList(src []*model.Order, opts ...TransformParam) []*example.Order

func OrderToPbPtrVal

func OrderToPbPtrVal(src *model.Order, opts ...TransformParam) example.Order

func OrderToPbValList

func OrderToPbValList(src []model.Order, opts ...TransformParam) []example.Order

func OrderToPbValPtr

func OrderToPbValPtr(src model.Order, opts ...TransformParam) *example.Order

func OrderToPbValPtrList

func OrderToPbValPtrList(src []model.Order, opts ...TransformParam) []*example.Order

func PbCustomOneofToStringPtrVal added in v1.0.7

func PbCustomOneofToStringPtrVal(src *example.CustomOneof, opts ...TransformParam) string

PbCustomOneofToStringPtrVal is an example of the custom transformer from Pb to go for the object with oneof in it

func PbCustomTypeToStringPtrVal added in v1.0.7

func PbCustomTypeToStringPtrVal(src *example.CustomType, opts ...TransformParam) string

PbCustomTypeToStringPtrVal is an example of the custom transformer from Pb to go

func PbToAddress

func PbToAddress(src example.Address, opts ...TransformParam) model.Address

func PbToAddressList

func PbToAddressList(src []*example.Address, opts ...TransformParam) []model.Address

PbToAddressList is DEPRECATED. Use PbToAddressPtrValList instead.

func PbToAddressPtr

func PbToAddressPtr(src *example.Address, opts ...TransformParam) *model.Address

func PbToAddressPtrList

func PbToAddressPtrList(src []*example.Address, opts ...TransformParam) []*model.Address

func PbToAddressPtrVal

func PbToAddressPtrVal(src *example.Address, opts ...TransformParam) model.Address

func PbToAddressPtrValList

func PbToAddressPtrValList(src []*example.Address, opts ...TransformParam) []model.Address

func PbToAddressValList

func PbToAddressValList(src []example.Address, opts ...TransformParam) []model.Address

func PbToAddressValPtr

func PbToAddressValPtr(src example.Address, opts ...TransformParam) *model.Address

func PbToCustomer

func PbToCustomer(src example.Customer, opts ...TransformParam) model.Customer

func PbToCustomerList

func PbToCustomerList(src []*example.Customer, opts ...TransformParam) []model.Customer

PbToCustomerList is DEPRECATED. Use PbToCustomerPtrValList instead.

func PbToCustomerPtr

func PbToCustomerPtr(src *example.Customer, opts ...TransformParam) *model.Customer

func PbToCustomerPtrList

func PbToCustomerPtrList(src []*example.Customer, opts ...TransformParam) []*model.Customer

func PbToCustomerPtrVal

func PbToCustomerPtrVal(src *example.Customer, opts ...TransformParam) model.Customer

func PbToCustomerPtrValList

func PbToCustomerPtrValList(src []*example.Customer, opts ...TransformParam) []model.Customer

func PbToCustomerValList

func PbToCustomerValList(src []example.Customer, opts ...TransformParam) []model.Customer

func PbToCustomerValPtr

func PbToCustomerValPtr(src example.Customer, opts ...TransformParam) *model.Customer

func PbToIntsModel added in v1.0.3

func PbToIntsModel(src example.Ints, opts ...TransformParam) model.IntsModel

func PbToIntsModelList added in v1.0.3

func PbToIntsModelList(src []*example.Ints, opts ...TransformParam) []model.IntsModel

PbToIntsModelList is DEPRECATED. Use PbToIntsModelPtrValList instead.

func PbToIntsModelPtr added in v1.0.3

func PbToIntsModelPtr(src *example.Ints, opts ...TransformParam) *model.IntsModel

func PbToIntsModelPtrList added in v1.0.3

func PbToIntsModelPtrList(src []*example.Ints, opts ...TransformParam) []*model.IntsModel

func PbToIntsModelPtrVal added in v1.0.3

func PbToIntsModelPtrVal(src *example.Ints, opts ...TransformParam) model.IntsModel

func PbToIntsModelPtrValList added in v1.0.3

func PbToIntsModelPtrValList(src []*example.Ints, opts ...TransformParam) []model.IntsModel

func PbToIntsModelValList added in v1.0.3

func PbToIntsModelValList(src []example.Ints, opts ...TransformParam) []model.IntsModel

func PbToIntsModelValPtr added in v1.0.3

func PbToIntsModelValPtr(src example.Ints, opts ...TransformParam) *model.IntsModel

func PbToMyLineItem

func PbToMyLineItem(src example.LineItem, opts ...TransformParam) model.MyLineItem

func PbToMyLineItemList

func PbToMyLineItemList(src []*example.LineItem, opts ...TransformParam) []model.MyLineItem

PbToMyLineItemList is DEPRECATED. Use PbToMyLineItemPtrValList instead.

func PbToMyLineItemPtr

func PbToMyLineItemPtr(src *example.LineItem, opts ...TransformParam) *model.MyLineItem

func PbToMyLineItemPtrList

func PbToMyLineItemPtrList(src []*example.LineItem, opts ...TransformParam) []*model.MyLineItem

func PbToMyLineItemPtrVal

func PbToMyLineItemPtrVal(src *example.LineItem, opts ...TransformParam) model.MyLineItem

func PbToMyLineItemPtrValList

func PbToMyLineItemPtrValList(src []*example.LineItem, opts ...TransformParam) []model.MyLineItem

func PbToMyLineItemUsage

func PbToMyLineItemUsage(src example.LineItemUsage, opts ...TransformParam) model.MyLineItemUsage

func PbToMyLineItemUsageList

func PbToMyLineItemUsageList(src []*example.LineItemUsage, opts ...TransformParam) []model.MyLineItemUsage

PbToMyLineItemUsageList is DEPRECATED. Use PbToMyLineItemUsagePtrValList instead.

func PbToMyLineItemUsagePtr

func PbToMyLineItemUsagePtr(src *example.LineItemUsage, opts ...TransformParam) *model.MyLineItemUsage

func PbToMyLineItemUsagePtrList

func PbToMyLineItemUsagePtrList(src []*example.LineItemUsage, opts ...TransformParam) []*model.MyLineItemUsage

func PbToMyLineItemUsagePtrVal

func PbToMyLineItemUsagePtrVal(src *example.LineItemUsage, opts ...TransformParam) model.MyLineItemUsage

func PbToMyLineItemUsagePtrValList

func PbToMyLineItemUsagePtrValList(src []*example.LineItemUsage, opts ...TransformParam) []model.MyLineItemUsage

func PbToMyLineItemUsageValList

func PbToMyLineItemUsageValList(src []example.LineItemUsage, opts ...TransformParam) []model.MyLineItemUsage

func PbToMyLineItemUsageValPtr

func PbToMyLineItemUsageValPtr(src example.LineItemUsage, opts ...TransformParam) *model.MyLineItemUsage

func PbToMyLineItemValList

func PbToMyLineItemValList(src []example.LineItem, opts ...TransformParam) []model.MyLineItem

func PbToMyLineItemValPtr

func PbToMyLineItemValPtr(src example.LineItem, opts ...TransformParam) *model.MyLineItem

func PbToOrder

func PbToOrder(src example.Order, opts ...TransformParam) model.Order

func PbToOrderList

func PbToOrderList(src []*example.Order, opts ...TransformParam) []model.Order

PbToOrderList is DEPRECATED. Use PbToOrderPtrValList instead.

func PbToOrderPtr

func PbToOrderPtr(src *example.Order, opts ...TransformParam) *model.Order

func PbToOrderPtrList

func PbToOrderPtrList(src []*example.Order, opts ...TransformParam) []*model.Order

func PbToOrderPtrVal

func PbToOrderPtrVal(src *example.Order, opts ...TransformParam) model.Order

func PbToOrderPtrValList

func PbToOrderPtrValList(src []*example.Order, opts ...TransformParam) []model.Order

func PbToOrderValList

func PbToOrderValList(src []example.Order, opts ...TransformParam) []model.Order

func PbToOrderValPtr

func PbToOrderValPtr(src example.Order, opts ...TransformParam) *model.Order

func PbToPointer2Value

func PbToPointer2Value(src example.Pointer2Value, opts ...TransformParam) model.Pointer2Value

func PbToPointer2ValueList

func PbToPointer2ValueList(src []*example.Pointer2Value, opts ...TransformParam) []model.Pointer2Value

PbToPointer2ValueList is DEPRECATED. Use PbToPointer2ValuePtrValList instead.

func PbToPointer2ValuePtr

func PbToPointer2ValuePtr(src *example.Pointer2Value, opts ...TransformParam) *model.Pointer2Value

func PbToPointer2ValuePtrList

func PbToPointer2ValuePtrList(src []*example.Pointer2Value, opts ...TransformParam) []*model.Pointer2Value

func PbToPointer2ValuePtrVal

func PbToPointer2ValuePtrVal(src *example.Pointer2Value, opts ...TransformParam) model.Pointer2Value

func PbToPointer2ValuePtrValList

func PbToPointer2ValuePtrValList(src []*example.Pointer2Value, opts ...TransformParam) []model.Pointer2Value

func PbToPointer2ValueValList

func PbToPointer2ValueValList(src []example.Pointer2Value, opts ...TransformParam) []model.Pointer2Value

func PbToPointer2ValueValPtr

func PbToPointer2ValueValPtr(src example.Pointer2Value, opts ...TransformParam) *model.Pointer2Value

func PbToProduct

func PbToProduct(src example.Product, opts ...TransformParam) model.Product

func PbToProductList

func PbToProductList(src []*example.Product, opts ...TransformParam) []model.Product

PbToProductList is DEPRECATED. Use PbToProductPtrValList instead.

func PbToProductPtr

func PbToProductPtr(src *example.Product, opts ...TransformParam) *model.Product

message "CustomOneof" has no option "transformer.go_struct", skipped... message "CustomType" has no option "transformer.go_struct", skipped... field skipped: some_field message "SkippedMessageOne" has no option "transformer.go_struct", skipped... message "SkippedMessageTwo" has no option "transformer.go_struct", skipped...

func PbToProductPtrList

func PbToProductPtrList(src []*example.Product, opts ...TransformParam) []*model.Product

func PbToProductPtrVal

func PbToProductPtrVal(src *example.Product, opts ...TransformParam) model.Product

func PbToProductPtrValList

func PbToProductPtrValList(src []*example.Product, opts ...TransformParam) []model.Product

func PbToProductValList

func PbToProductValList(src []example.Product, opts ...TransformParam) []model.Product

func PbToProductValPtr

func PbToProductValPtr(src example.Product, opts ...TransformParam) *model.Product

func PbToPtrVal added in v1.0.7

func PbToPtrVal(src *example.NotSupportedOneOf, opts ...TransformParam) string

PbToPtrVal is a transformer for a non-supported type See TODO for ToPbValPtr

func PbToTimeModel added in v1.0.2

func PbToTimeModel(src example.Timer, opts ...TransformParam) model.TimeModel

func PbToTimeModelList added in v1.0.2

func PbToTimeModelList(src []*example.Timer, opts ...TransformParam) []model.TimeModel

PbToTimeModelList is DEPRECATED. Use PbToTimeModelPtrValList instead.

func PbToTimeModelPtr added in v1.0.2

func PbToTimeModelPtr(src *example.Timer, opts ...TransformParam) *model.TimeModel

func PbToTimeModelPtrList added in v1.0.2

func PbToTimeModelPtrList(src []*example.Timer, opts ...TransformParam) []*model.TimeModel

func PbToTimeModelPtrVal added in v1.0.2

func PbToTimeModelPtrVal(src *example.Timer, opts ...TransformParam) model.TimeModel

func PbToTimeModelPtrValList added in v1.0.2

func PbToTimeModelPtrValList(src []*example.Timer, opts ...TransformParam) []model.TimeModel

func PbToTimeModelValList added in v1.0.2

func PbToTimeModelValList(src []example.Timer, opts ...TransformParam) []model.TimeModel

func PbToTimeModelValPtr added in v1.0.2

func PbToTimeModelValPtr(src example.Timer, opts ...TransformParam) *model.TimeModel

func PbToValue2Pointer

func PbToValue2Pointer(src example.Value2Pointer, opts ...TransformParam) model.Value2Pointer

func PbToValue2PointerList

func PbToValue2PointerList(src []*example.Value2Pointer, opts ...TransformParam) []model.Value2Pointer

PbToValue2PointerList is DEPRECATED. Use PbToValue2PointerPtrValList instead.

func PbToValue2PointerPtr

func PbToValue2PointerPtr(src *example.Value2Pointer, opts ...TransformParam) *model.Value2Pointer

func PbToValue2PointerPtrList

func PbToValue2PointerPtrList(src []*example.Value2Pointer, opts ...TransformParam) []*model.Value2Pointer

func PbToValue2PointerPtrVal

func PbToValue2PointerPtrVal(src *example.Value2Pointer, opts ...TransformParam) model.Value2Pointer

func PbToValue2PointerPtrValList

func PbToValue2PointerPtrValList(src []*example.Value2Pointer, opts ...TransformParam) []model.Value2Pointer

func PbToValue2PointerValList

func PbToValue2PointerValList(src []example.Value2Pointer, opts ...TransformParam) []model.Value2Pointer

func PbToValue2PointerValPtr

func PbToValue2PointerValPtr(src example.Value2Pointer, opts ...TransformParam) *model.Value2Pointer

func Pointer2ValueToPb

func Pointer2ValueToPb(src model.Pointer2Value, opts ...TransformParam) example.Pointer2Value

func Pointer2ValueToPbList

func Pointer2ValueToPbList(src []model.Pointer2Value, opts ...TransformParam) []*example.Pointer2Value

Pointer2ValueToPbList is DEPRECATED. Use Pointer2ValueToPbValPtrList instead.

func Pointer2ValueToPbPtr

func Pointer2ValueToPbPtr(src *model.Pointer2Value, opts ...TransformParam) *example.Pointer2Value

func Pointer2ValueToPbPtrList

func Pointer2ValueToPbPtrList(src []*model.Pointer2Value, opts ...TransformParam) []*example.Pointer2Value

func Pointer2ValueToPbPtrVal

func Pointer2ValueToPbPtrVal(src *model.Pointer2Value, opts ...TransformParam) example.Pointer2Value

func Pointer2ValueToPbValList

func Pointer2ValueToPbValList(src []model.Pointer2Value, opts ...TransformParam) []example.Pointer2Value

func Pointer2ValueToPbValPtr

func Pointer2ValueToPbValPtr(src model.Pointer2Value, opts ...TransformParam) *example.Pointer2Value

func Pointer2ValueToPbValPtrList

func Pointer2ValueToPbValPtrList(src []model.Pointer2Value, opts ...TransformParam) []*example.Pointer2Value

func ProductToPb

func ProductToPb(src model.Product, opts ...TransformParam) example.Product

func ProductToPbList

func ProductToPbList(src []model.Product, opts ...TransformParam) []*example.Product

ProductToPbList is DEPRECATED. Use ProductToPbValPtrList instead.

func ProductToPbPtr

func ProductToPbPtr(src *model.Product, opts ...TransformParam) *example.Product

func ProductToPbPtrList

func ProductToPbPtrList(src []*model.Product, opts ...TransformParam) []*example.Product

func ProductToPbPtrVal

func ProductToPbPtrVal(src *model.Product, opts ...TransformParam) example.Product

func ProductToPbValList

func ProductToPbValList(src []model.Product, opts ...TransformParam) []example.Product

func ProductToPbValPtr

func ProductToPbValPtr(src model.Product, opts ...TransformParam) *example.Product

func ProductToPbValPtrList

func ProductToPbValPtrList(src []model.Product, opts ...TransformParam) []*example.Product

func StringToPbCustomOneofValPtr added in v1.0.7

func StringToPbCustomOneofValPtr(src string, opts ...TransformParam) *example.CustomOneof

StringToPbCustomOneofValPtr is an example of the custom transformer from go to Pb for the object with oneof in it

func StringToPbCustomTypeValPtr added in v1.0.7

func StringToPbCustomTypeValPtr(src string, opts ...TransformParam) *example.CustomType

StringToPbCustomTypeValPtr is an example of the custom transformer from go to Pb

func StringToTheOne

func StringToTheOne(s string, dst *example.TheOne, v string)

func TheOneToString

func TheOneToString(src OneofTheDecl) string

func TimeModelToPb added in v1.0.2

func TimeModelToPb(src model.TimeModel, opts ...TransformParam) example.Timer

func TimeModelToPbList added in v1.0.2

func TimeModelToPbList(src []model.TimeModel, opts ...TransformParam) []*example.Timer

TimeModelToPbList is DEPRECATED. Use TimeModelToPbValPtrList instead.

func TimeModelToPbPtr added in v1.0.2

func TimeModelToPbPtr(src *model.TimeModel, opts ...TransformParam) *example.Timer

func TimeModelToPbPtrList added in v1.0.2

func TimeModelToPbPtrList(src []*model.TimeModel, opts ...TransformParam) []*example.Timer

func TimeModelToPbPtrVal added in v1.0.2

func TimeModelToPbPtrVal(src *model.TimeModel, opts ...TransformParam) example.Timer

func TimeModelToPbValList added in v1.0.2

func TimeModelToPbValList(src []model.TimeModel, opts ...TransformParam) []example.Timer

func TimeModelToPbValPtr added in v1.0.2

func TimeModelToPbValPtr(src model.TimeModel, opts ...TransformParam) *example.Timer

func TimeModelToPbValPtrList added in v1.0.2

func TimeModelToPbValPtrList(src []model.TimeModel, opts ...TransformParam) []*example.Timer

func ToPbValPtr added in v1.0.7

func ToPbValPtr(src string, opts ...TransformParam) *example.NotSupportedOneOf

ToPbValPtr is a transformer for a non-supported type TODO: We need to rename the method to include a field name or type to it.

So we can have more than 1 unsupported type in the file.
Alternatively you can use `custom` attribute to make a custom transformer
Current implementation is a bug, but it is used as a feature,
so changing the method name will break backward compatibilty

func Value2PointerToPb

func Value2PointerToPb(src model.Value2Pointer, opts ...TransformParam) example.Value2Pointer

func Value2PointerToPbList

func Value2PointerToPbList(src []model.Value2Pointer, opts ...TransformParam) []*example.Value2Pointer

Value2PointerToPbList is DEPRECATED. Use Value2PointerToPbValPtrList instead.

func Value2PointerToPbPtr

func Value2PointerToPbPtr(src *model.Value2Pointer, opts ...TransformParam) *example.Value2Pointer

func Value2PointerToPbPtrList

func Value2PointerToPbPtrList(src []*model.Value2Pointer, opts ...TransformParam) []*example.Value2Pointer

func Value2PointerToPbPtrVal

func Value2PointerToPbPtrVal(src *model.Value2Pointer, opts ...TransformParam) example.Value2Pointer

func Value2PointerToPbValList

func Value2PointerToPbValList(src []model.Value2Pointer, opts ...TransformParam) []example.Value2Pointer

func Value2PointerToPbValPtr

func Value2PointerToPbValPtr(src model.Value2Pointer, opts ...TransformParam) *example.Value2Pointer

func Value2PointerToPbValPtrList

func Value2PointerToPbValPtrList(src []model.Value2Pointer, opts ...TransformParam) []*example.Value2Pointer

Types

type OneofTheDecl

type OneofTheDecl interface {
	GetStringValue() string
	GetInt64Value() int64
}

type TransformParam

type TransformParam func()

TransformParam is a function option type.

func WithVersion

func WithVersion(v string) TransformParam

WithVersion sets global version variable.

Jump to

Keyboard shortcuts

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