example

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToDestination

func CopyToDestination(dst *Destination, src *Source)

:quickcopy

Types

type Destination

type Destination struct {
	Name     string
	Age      string // 支持类型自动转换
	Birthday string // time.Time 将自动转为 RFC3339 格式
	ID       string // UUID 将自动转为字符串
}

目标结构体

type Source

type Source struct {
	Name     string
	Age      int
	Birthday time.Time
	ID       uuid.UUID
}

源结构体

Jump to

Keyboard shortcuts

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