otel: go.opentelemetry.io/otel/internal/testing Index | Files

package testing

import "go.opentelemetry.io/otel/internal/testing"


Package Files


func Aligned8Byte Uses

func Aligned8Byte(fields []FieldOffset, out io.Writer) bool

Aligned8Byte returns if all fields are aligned modulo 8-bytes.

Error messaging is printed to out for any fileds determined misaligned.

type FieldOffset Uses

type FieldOffset struct {
    // Name of the field.
    Name string

    // Offset of the field in bytes.
    // To compute this at compile time use unsafe.Offsetof.
    Offset uintptr

FieldOffset is a preprocessor representation of a struct field alignment.

Package testing imports 2 packages (graph) and is imported by 1 packages. Updated 2020-01-06. Refresh now. Tools for package owners.