fp-go-lens

Installation
SKILL.md

fp-go Lenses for Structs

Overview

Lenses are functional optics that provide immutable access to nested data structures. A Lens[S, A] focuses on a field A within a structure S, providing Get (read) and Set (immutable update) operations.

import (
    L  "github.com/IBM/fp-go/v2/optics/lens"
    LO "github.com/IBM/fp-go/v2/optics/lens/option"
    F  "github.com/IBM/fp-go/v2/function"
    O  "github.com/IBM/fp-go/v2/option"
)

Code Generation (Recommended)

Installs
2
Repository
ibm/fp-go
GitHub Stars
2.0K
First Seen
Jun 23, 2026
fp-go-lens — ibm/fp-go