simple

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertTime

func ConvertTime(t time.Time) time.Time

Types

type Converter

type Converter interface {
	Convert(source Input) Output
}

goverter:converter goverter:extend ConvertTime

type ConverterLocally

type ConverterLocally interface {
	// goverter:map CreatedAt | ConvertTime
	Convert(source Input) Output
}

goverter:converter

type Input

type Input struct {
	Name      string
	CreatedAt time.Time
}

type Output

type Output struct {
	Name      string
	CreatedAt time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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