entity

package
v0.0.0-...-7ea2635 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Animal

type Animal struct {
	Name   string
	Age    int64
	Weight float64
}

type AnimalShelter

type AnimalShelter struct {
	Address     string
	PhoneNumber string
	Animals     []Animal
	Employees   []Employee
}

func FromProto

func FromProto(shelter *proto.AnimalShelter) AnimalShelter

func NewAnimalShelter

func NewAnimalShelter() AnimalShelter

func (*AnimalShelter) ToProto

func (shelter *AnimalShelter) ToProto() *proto.AnimalShelter

type Employee

type Employee struct {
	FirstName  string
	SecondName string
	Manager    *EmployeeID
	Hobbies    []string
}

type EmployeeID

type EmployeeID int64

Jump to

Keyboard shortcuts

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