Help us shape the future of Go! Take the 2026 Go Developer Survey

profile

package
v0.76.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameProfile

type GameProfile struct {
	ID         uuid.UUID  `json:"id"`
	Name       string     `json:"name"`
	Properties []Property `json:"properties"`
}

GameProfile is a Mojang game profile.

func NewOffline

func NewOffline(username string) *GameProfile

NewOffline returns the new GameProfile for an offline profile.

func (*GameProfile) MarshalJSON

func (g *GameProfile) MarshalJSON() ([]byte, error)

func (*GameProfile) String

func (g *GameProfile) String() string

func (*GameProfile) UnmarshalJSON

func (g *GameProfile) UnmarshalJSON(data []byte) (err error)

type Property

type Property struct {
	Name      string `json:"name"`
	Value     string `json:"value"`
	Signature string `json:"signature,omitempty"`
}

Property is a Mojang profile property.

func (*Property) String

func (p *Property) String() string

Jump to

Keyboard shortcuts

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