user

package
v1.11.6 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gender

type Gender hessian.JavaEnum
const (
	MAN Gender = iota
	WOMAN
)

func (Gender) EnumValue

func (g Gender) EnumValue(s string) hessian.JavaEnum

func (Gender) JavaClassName

func (g Gender) JavaClassName() string

func (Gender) String

func (g Gender) String() string

type User

type User struct {
	// !!! Cannot define lowercase names of variable
	ID   string
	Name string
	Age  int32
	Time time.Time
	Sex  Gender // notice: java enum Object <--> go string
}

func (*User) JavaClassName

func (u *User) JavaClassName() string

func (User) String

func (u User) String() string

Jump to

Keyboard shortcuts

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