copy

package
v0.0.0-...-39bad16 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

動的変数コピー コンパイラチェックなし、直書きのほうが早いので要注意

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvCopy

func ConvCopy(v1 reflect.Value, v2 reflect.Value) error

自動値変換とコピー

func FieldToRef

func FieldToRef(x1 interface{}, field string, x2 interface{}) bool

func FieldToValue

func FieldToValue(x1 interface{}, field string, v2 reflect.Value) bool

func MapToStructWithTag

func MapToStructWithTag(x1 map[string]interface{}, x2 interface{}, tagName string)

func RefToField

func RefToField(x1 interface{}, x2 interface{}, field string) bool

func RefToRef

func RefToRef(x1 interface{}, x2 interface{}) bool

func RefToValue

func RefToValue(x1 interface{}, v2 reflect.Value) bool

func StructToMap

func StructToMap(x1 interface{}) map[string]interface{}

func StructToStruct

func StructToStruct(x1 interface{}, x2 interface{})

同名、同Typeフィールドの値をコピー

func ValueToField

func ValueToField(v1 reflect.Value, x2 interface{}, field string) bool

func ValueToRef

func ValueToRef(v1 reflect.Value, x2 interface{}) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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