gnlib

package module
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 4 Imported by: 7

README

gnlib

A miscellaneous collection of entities shared between GNA Go projects

gnver: a project version

matcher: input and output of for gnmatcher service.

reconciler: manifest, input and output for gnames reconciler service.

verifier: entities for gnames verification service.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmpVersion added in v0.44.0

func CmpVersion(a, b string) int

func FilterFunc added in v0.32.0

func FilterFunc[T any](s []T, f func(T) bool) []T

Filter returns a new slice containing only the elements of s for which filter function returns true.

func LangCode added in v0.33.0

func LangCode(lang string) string

func LangName added in v0.33.0

func LangName(code string) string

func Map

func Map[T any, U any](s []T, f func(T) U) []U

Map applies a function to each element of a slice and returns a new slice in the same order.

func SliceMap added in v0.45.0

func SliceMap[T comparable](s []T) map[T]int

SliceMap takes a slice and returns back a lookup map which allows to find index for each element of the slice. If the value happens several times in the slice, the index corresponds to the first matching element.

Types

This section is empty.

Directories

Path Synopsis
ent
reconciler
package reconciler describes entities for implementation of a Reconciliation Service API v0.2 https://www.w3.org/community/reports/reconciliation/CG-FINAL-specs-0.2-20230410/
package reconciler describes entities for implementation of a Reconciliation Service API v0.2 https://www.w3.org/community/reports/reconciliation/CG-FINAL-specs-0.2-20230410/

Jump to

Keyboard shortcuts

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