example

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAge

func DefaultAge() int

func GetFullName

func GetFullName(input Input) string

func PrependHTTPS

func PrependHTTPS(url string) string

Types

type Converter

type Converter interface {
	// goverter:map URL | PrependHTTPS
	// goverter:map . FullName | GetFullName
	// goverter:map Age | DefaultAge
	// goverter:map Value | strconv:Itoa
	Convert(Input) (Output, error)
}

goverter:converter

type Input

type Input struct {
	URL string

	FirstName string
	LastName  string

	Value int
}

type Output

type Output struct {
	URL      string
	FullName string
	Age      int

	Value string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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