source

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnotherFunc

func AnotherFunc() string

func ExampleFunc

func ExampleFunc() string

Types

type IgnoredType

type IgnoredType struct {
	Foo     string
	Profile Profile `json:",inline"` // embedded profile
}

IgnoredType is not copied

type OtherType

type OtherType struct {
	Hello string `json:"hello,omitempty"`
}

OtherType is copied separately

type Profile

type Profile struct {
	Bio string // short bio
}

Profile contains extra info.

type User

type User struct {
	// ID is the unique identifier
	ID int `json:"id"`
	// Name of the user
	Name    string  `json:"name"`
	Profile Profile `json:",inline"` // embedded profile

	Import thirdparty.SomeType `json:"import"`
}

User represents a system user.

Jump to

Keyboard shortcuts

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