Documentation
¶
Overview ¶
Package steamlib provides common functionality to work with Valve's various products.
Index ¶
- type AppID
- func (id *AppID) MarshalBinary() ([]byte, error)
- func (id *AppID) MarshalJSON() ([]byte, error)
- func (id *AppID) MarshalText() ([]byte, error)
- func (id *AppID) String() string
- func (id *AppID) Uint32() uint32
- func (id *AppID) Uint64() uint64
- func (id *AppID) UnmarshalBinary(data []byte) error
- func (id *AppID) UnmarshalJSON(data []byte) error
- func (id *AppID) UnmarshalText(data []byte) error
- type AppIDMarshalBinaryError
- type AppIDMarshalJSONError
- type AppIDMarshalTextError
- type AppIDParseError
- type AppIDUnmarshalBinaryError
- type AppIDUnmarshalJSONError
- type AppIDUnmarshalTextError
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 (*AppID) MarshalBinary ¶
MarshalBinary implements interface `encoding.BinaryMarshaler`.
It assumes little endianness.
Returns `*AppIDMarshalBinaryError` on error.
func (*AppID) MarshalJSON ¶
MarshalJSON implements interface `encoding/json.Marshaler`
It assumes base 10.
Returns `*AppIDMarshalJSONError` on error.
func (*AppID) MarshalText ¶
MarshalText implements interface `encoding.TextMarshaler`.
It uses base 10.
Returns `*AppIDMarshalTextError` on error.
func (*AppID) String ¶
String implements interface `fmt.Stringer`.
It returns the id formatted as string using base 10.
func (*AppID) UnmarshalBinary ¶
UnmarshalBinary implements interface `encoding.BinaryUnmarshaler`.
It assumes little endianness.
Returns `*AppIDUnmarshalBinaryError` on error.
func (*AppID) UnmarshalJSON ¶
UnmarshalJSON implements interface `encoding/json.Unmarshaler`
It assumes base 10.
Returns `*AppIDUnmarshalJSONError` on error.
func (*AppID) UnmarshalText ¶
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