target

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 SomeOtherType added in v1.1.1

type SomeOtherType struct {
	Import  thirdparty.SomeType            `json:"import"`
	Import2 nestedthirdparty.SomeOtherType `json:"import2"`
}

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