models

package
v0.17.87 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	// contains filtered or unexported fields
}

User simulates a protobuf editions message with getter and haser methods

func NewUser

func NewUser(id string, name, email *string, age int32) *User

NewUser creates a new User

func (*User) GetAge

func (u *User) GetAge() int32

GetAge is a protobuf-style getter for non-nullable field

func (*User) GetEmail

func (u *User) GetEmail() string

GetEmail is a protobuf-style getter

func (*User) GetId

func (u *User) GetId() string

GetId is a protobuf-style getter

func (*User) GetName

func (u *User) GetName() string

GetName is a protobuf-style getter

func (*User) HasEmail

func (u *User) HasEmail() bool

HasEmail is a protobuf-style haser

func (*User) HasName

func (u *User) HasName() bool

HasName is a protobuf-style haser

Jump to

Keyboard shortcuts

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