entity

package
v0.0.0-...-2cdf060 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Students = []Student{
	{ID: shared.GetID(), FullName: "John", Age: 20},
	{ID: shared.GetID(), FullName: "Mary", Age: 22},
}

Functions

This section is empty.

Types

type Student

type Student struct {
	ID       uuid.UUID `json:"id"`
	FullName string    `json:"full_name"`
	Age      int       `json:"age"`
}

func CreateStudent

func CreateStudent(fullName string, age int) *Student

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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