tuple

package
v0.0.0-...-93f578c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package tuple Code generated by go generate; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetToStruct

func SetToStruct(tuple interface{}, dst interface{}, offset int) error

Types

type Of10

type Of10[A any, B any, C any, D any, E any, F any, G any, H any, I any, J any] struct {
	First   A
	Second  B
	Third   C
	Fourth  D
	Fifth   E
	Sixth   F
	Seventh G
	Eighth  H
	Ninth   I
	Tenth   J
}

Of10 represents a tuple of 10 elements

func New10

func New10[A any, B any, C any, D any, E any, F any, G any, H any, I any, J any](first A, second B, third C, fourth D, fifth E, sixth F, seventh G, eighth H, ninth I, tenth J) Of10[A, B, C, D, E, F, G, H, I, J]

New10 creates a new tuple of 10 elements

func (*Of10[A, B, C, D, E, F, G, H, I, J]) MarshalJSON

func (t *Of10[A, B, C, D, E, F, G, H, I, J]) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*Of10[A, B, C, D, E, F, G, H, I, J]) UnmarshalJSON

func (t *Of10[A, B, C, D, E, F, G, H, I, J]) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Of2

type Of2[A any, B any] struct {
	First  A
	Second B
}

Of2 represents a tuple of 2 elements

func New2

func New2[A any, B any](first A, second B) Of2[A, B]

New2 creates a new tuple of 2 elements

func (*Of2[A, B]) MarshalJSON

func (t *Of2[A, B]) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*Of2[A, B]) UnmarshalJSON

func (t *Of2[A, B]) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Of3

type Of3[A any, B any, C any] struct {
	First  A
	Second B
	Third  C
}

Of3 represents a tuple of 3 elements

func New3

func New3[A any, B any, C any](first A, second B, third C) Of3[A, B, C]

New3 creates a new tuple of 3 elements

func (*Of3[A, B, C]) MarshalJSON

func (t *Of3[A, B, C]) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*Of3[A, B, C]) UnmarshalJSON

func (t *Of3[A, B, C]) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Of4

type Of4[A any, B any, C any, D any] struct {
	First  A
	Second B
	Third  C
	Fourth D
}

Of4 represents a tuple of 4 elements

func New4

func New4[A any, B any, C any, D any](first A, second B, third C, fourth D) Of4[A, B, C, D]

New4 creates a new tuple of 4 elements

func (*Of4[A, B, C, D]) MarshalJSON

func (t *Of4[A, B, C, D]) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*Of4[A, B, C, D]) UnmarshalJSON

func (t *Of4[A, B, C, D]) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Of5

type Of5[A any, B any, C any, D any, E any] struct {
	First  A
	Second B
	Third  C
	Fourth D
	Fifth  E
}

Of5 represents a tuple of 5 elements

func New5

func New5[A any, B any, C any, D any, E any](first A, second B, third C, fourth D, fifth E) Of5[A, B, C, D, E]

New5 creates a new tuple of 5 elements

func (*Of5[A, B, C, D, E]) MarshalJSON

func (t *Of5[A, B, C, D, E]) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*Of5[A, B, C, D, E]) UnmarshalJSON

func (t *Of5[A, B, C, D, E]) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Of6

type Of6[A any, B any, C any, D any, E any, F any] struct {
	First  A
	Second B
	Third  C
	Fourth D
	Fifth  E
	Sixth  F
}

Of6 represents a tuple of 6 elements

func New6

func New6[A any, B any, C any, D any, E any, F any](first A, second B, third C, fourth D, fifth E, sixth F) Of6[A, B, C, D, E, F]

New6 creates a new tuple of 6 elements

func (*Of6[A, B, C, D, E, F]) MarshalJSON

func (t *Of6[A, B, C, D, E, F]) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*Of6[A, B, C, D, E, F]) UnmarshalJSON

func (t *Of6[A, B, C, D, E, F]) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Of7

type Of7[A any, B any, C any, D any, E any, F any, G any] struct {
	First   A
	Second  B
	Third   C
	Fourth  D
	Fifth   E
	Sixth   F
	Seventh G
}

Of7 represents a tuple of 7 elements

func New7

func New7[A any, B any, C any, D any, E any, F any, G any](first A, second B, third C, fourth D, fifth E, sixth F, seventh G) Of7[A, B, C, D, E, F, G]

New7 creates a new tuple of 7 elements

func (*Of7[A, B, C, D, E, F, G]) MarshalJSON

func (t *Of7[A, B, C, D, E, F, G]) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*Of7[A, B, C, D, E, F, G]) UnmarshalJSON

func (t *Of7[A, B, C, D, E, F, G]) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Of8

type Of8[A any, B any, C any, D any, E any, F any, G any, H any] struct {
	First   A
	Second  B
	Third   C
	Fourth  D
	Fifth   E
	Sixth   F
	Seventh G
	Eighth  H
}

Of8 represents a tuple of 8 elements

func New8

func New8[A any, B any, C any, D any, E any, F any, G any, H any](first A, second B, third C, fourth D, fifth E, sixth F, seventh G, eighth H) Of8[A, B, C, D, E, F, G, H]

New8 creates a new tuple of 8 elements

func (*Of8[A, B, C, D, E, F, G, H]) MarshalJSON

func (t *Of8[A, B, C, D, E, F, G, H]) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*Of8[A, B, C, D, E, F, G, H]) UnmarshalJSON

func (t *Of8[A, B, C, D, E, F, G, H]) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Of9

type Of9[A any, B any, C any, D any, E any, F any, G any, H any, I any] struct {
	First   A
	Second  B
	Third   C
	Fourth  D
	Fifth   E
	Sixth   F
	Seventh G
	Eighth  H
	Ninth   I
}

Of9 represents a tuple of 9 elements

func New9

func New9[A any, B any, C any, D any, E any, F any, G any, H any, I any](first A, second B, third C, fourth D, fifth E, sixth F, seventh G, eighth H, ninth I) Of9[A, B, C, D, E, F, G, H, I]

New9 creates a new tuple of 9 elements

func (*Of9[A, B, C, D, E, F, G, H, I]) MarshalJSON

func (t *Of9[A, B, C, D, E, F, G, H, I]) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*Of9[A, B, C, D, E, F, G, H, I]) UnmarshalJSON

func (t *Of9[A, B, C, D, E, F, G, H, I]) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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