steamlib

package module
v0.0.0-...-43af894 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 5 Imported by: 3

Documentation

Overview

Package steamlib provides common functionality to work with Valve's various products.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppID

type AppID uint32

AppID represents an Steam application ID.

func ParseAppID

func ParseAppID(s string) (AppID, error)

ParseAppID parses a string into an AppID.

Returns `*AppIDParseError` on error.

func (*AppID) MarshalBinary

func (id *AppID) MarshalBinary() ([]byte, error)

MarshalBinary implements interface `encoding.BinaryMarshaler`.

It assumes little endianness.

Returns `*AppIDMarshalBinaryError` on error.

func (*AppID) MarshalJSON

func (id *AppID) MarshalJSON() ([]byte, error)

MarshalJSON implements interface `encoding/json.Marshaler`

It assumes base 10.

Returns `*AppIDMarshalJSONError` on error.

func (*AppID) MarshalText

func (id *AppID) MarshalText() ([]byte, error)

MarshalText implements interface `encoding.TextMarshaler`.

It uses base 10.

Returns `*AppIDMarshalTextError` on error.

func (*AppID) String

func (id *AppID) String() string

String implements interface `fmt.Stringer`.

It returns the id formatted as string using base 10.

func (*AppID) Uint32

func (id *AppID) Uint32() uint32

Uint32 returns the id as uint32.

func (*AppID) Uint64

func (id *AppID) Uint64() uint64

Uint32 returns the id as uint64.

func (*AppID) UnmarshalBinary

func (id *AppID) UnmarshalBinary(data []byte) error

UnmarshalBinary implements interface `encoding.BinaryUnmarshaler`.

It assumes little endianness.

Returns `*AppIDUnmarshalBinaryError` on error.

func (*AppID) UnmarshalJSON

func (id *AppID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements interface `encoding/json.Unmarshaler`

It assumes base 10.

Returns `*AppIDUnmarshalJSONError` on error.

func (*AppID) UnmarshalText

func (id *AppID) UnmarshalText(data []byte) error

UnmarshalText implements interface `encoding.TextUnmarshaler`.

It assumes base 10.

Returns `*AppIDUnmarshalTextError` on error.

type AppIDMarshalBinaryError

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

func (*AppIDMarshalBinaryError) Error

func (err *AppIDMarshalBinaryError) Error() string

func (*AppIDMarshalBinaryError) Unwrap

func (err *AppIDMarshalBinaryError) Unwrap() error

type AppIDMarshalJSONError

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

func (*AppIDMarshalJSONError) Error

func (err *AppIDMarshalJSONError) Error() string

func (*AppIDMarshalJSONError) Unwrap

func (err *AppIDMarshalJSONError) Unwrap() error

type AppIDMarshalTextError

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

func (*AppIDMarshalTextError) Error

func (err *AppIDMarshalTextError) Error() string

func (*AppIDMarshalTextError) Unwrap

func (err *AppIDMarshalTextError) Unwrap() error

type AppIDParseError

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

func (*AppIDParseError) Error

func (err *AppIDParseError) Error() string

func (*AppIDParseError) Unwrap

func (err *AppIDParseError) Unwrap() error

type AppIDUnmarshalBinaryError

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

func (*AppIDUnmarshalBinaryError) Error

func (err *AppIDUnmarshalBinaryError) Error() string

func (*AppIDUnmarshalBinaryError) Unwrap

func (err *AppIDUnmarshalBinaryError) Unwrap() error

type AppIDUnmarshalJSONError

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

func (*AppIDUnmarshalJSONError) Error

func (err *AppIDUnmarshalJSONError) Error() string

func (*AppIDUnmarshalJSONError) Unwrap

func (err *AppIDUnmarshalJSONError) Unwrap() error

type AppIDUnmarshalTextError

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

func (*AppIDUnmarshalTextError) Error

func (err *AppIDUnmarshalTextError) Error() string

func (*AppIDUnmarshalTextError) Unwrap

func (err *AppIDUnmarshalTextError) Unwrap() error

Jump to

Keyboard shortcuts

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