fixture

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by nativebind. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var Fields = nativebind.GeneratedFields{Type: reflect.TypeFor[Row](), New: func() unsafe.Pointer { return unsafe.Pointer(new(Row)) }, Fields: []nativebind.GeneratedField{
	{Name: "Count", Get: func(p unsafe.Pointer) values.Value { return values.Int(int64((*(Row))(p).Count)) }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Count = Count(v.AsInt()) }},
	{Name: "Flag", Get: func(p unsafe.Pointer) values.Value { return values.Bool(bool((*(Row))(p).Flag)) }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Flag = Flag(v.R != 0) }},
	{Name: "Text", Get: func(p unsafe.Pointer) values.Value { return values.String(string((*(Row))(p).Text)) }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Text = string(v.AsString()) }},
	{Name: "Fraction", Get: func(p unsafe.Pointer) values.Value { return values.Float32(float32((*(Row))(p).Fraction)) }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Fraction = float32(v.AsFloat32()) }},
	{Name: "Ratio", Get: func(p unsafe.Pointer) values.Value { return values.Float(float64((*(Row))(p).Ratio)) }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Ratio = float64(v.AsFloat()) }},
	{Name: "Child", Get: func(p unsafe.Pointer) values.Value { return values.Value{P: unsafe.Pointer(&(*(Row))(p).Child)} }, Set: func(p unsafe.Pointer, v values.Value) {
		if v.P == nil {
			var zero Child
			(*(Row))(p).Child = zero
		} else {
			(*(Row))(p).Child = *(*(Child))(v.P)
		}
	}},
	{Name: "Next", Get: func(p unsafe.Pointer) values.Value { return values.Value{P: unsafe.Pointer((*(Row))(p).Next)} }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Next = (*Row)(v.P) }},
	{Name: "Items", Get: func(p unsafe.Pointer) values.Value { return values.Value{P: unsafe.Pointer(&(*(Row))(p).Items)} }, Set: func(p unsafe.Pointer, v values.Value) {
		if v.P == nil {
			var zero []int
			(*(Row))(p).Items = zero
		} else {
			(*(Row))(p).Items = *(*([]int))(v.P)
		}
	}},
	{Name: "Labels", Get: func(p unsafe.Pointer) values.Value { return values.Value{P: unsafe.Pointer(&(*(Row))(p).Labels)} }, Set: func(p unsafe.Pointer, v values.Value) {
		if v.P == nil {
			var zero map[string]int
			(*(Row))(p).Labels = zero
		} else {
			(*(Row))(p).Labels = *(*(map[string]int))(v.P)
		}
	}},
}}

Functions

This section is empty.

Types

type Child

type Child struct{ Number int64 }

type Count

type Count int32

type Flag

type Flag bool

type Row

type Row struct {
	Count    Count
	Flag     Flag
	Text     string
	Fraction float32
	Ratio    float64
	Child    Child
	Next     *Row
	Items    []int
	Labels   map[string]int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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