Package ghidra.app.util.bin.format.golang.structmapping

# Interface FieldOutputFunction<T>

Type Parameters:
  `T` - type of the structure mapped class

public interface FieldOutputFunction<T>
A function that adds a field to a Ghidra structure using annotated field information found in a Java class.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addFieldToStructure(StructureContext<T> context, Structure structure, FieldOutputInfo<T> fieldOutputInfo)`
  Adds the specified field (in `fieldOutputInfo`) to the structure.

- ## Method Details

  - ### addFieldToStructure

    void addFieldToStructure(StructureContext<T> context, Structure structure, FieldOutputInfo<T> fieldOutputInfo) throws IOException
    Adds the specified field (in `fieldOutputInfo`) to the structure.
    Parameters:
      `context` - `StructureContext`
      `structure` - `Structure` data type
      `fieldOutputInfo` - `FieldOutputInfo` field info
    Throws:
      `IOException` - if error