diff

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package diff computes message-set differences between two OCPP versions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff struct {
	AddedMessages   []string
	RemovedMessages []string
	ChangedMessages map[string]MessageChange
}

Diff is the full comparison result.

func Compute

func Compute(oldSet, newSet map[string][]string) Diff

Compute compares old and new action->fields maps.

func (Diff) Markdown

func (d Diff) Markdown(fromVer, toVer string) string

Markdown renders the diff as a CHANGELOG section.

type MessageChange

type MessageChange struct {
	AddedFields   []string
	RemovedFields []string
}

MessageChange describes field-level changes for one message.

Jump to

Keyboard shortcuts

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