Skip to content

Commit

Permalink
Added package documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Fourny committed Dec 13, 2023
1 parent d5d1a50 commit 3bf0d73
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cmp/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Package cmp provides a set of utility functions for comparing and sorting values in Go.
// It includes functions for creating Comparers, which are functions that compare two values of the same type.
//
// The package is designed to be used with the Go standard library's sort package.
package cmp
2 changes: 2 additions & 0 deletions pkg/collection/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package collection provides data structures and algorithms.
package collection
2 changes: 2 additions & 0 deletions pkg/collection/set/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package set provides a map-based implementation of a set.
package set
2 changes: 2 additions & 0 deletions pkg/constraint/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package constraint defines various type-constraining interfaces used throughout the library.
package constraint
2 changes: 2 additions & 0 deletions pkg/mapper/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package mapper provides a set of functions for transforming values in Go.
package mapper
5 changes: 5 additions & 0 deletions pkg/optional/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Package optional defines types for working with optional values, inspired by Java's `Optional` class.
// An optional value either contains a value of a certain type (Some), or it is empty (None).
// This package provides a way to safely handle such values without the risk of null pointer dereferences.
// It includes functions for creating optional values, checking if they are present, and retrieving the value if it is present.
package optional
2 changes: 2 additions & 0 deletions pkg/pair/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package pair provides a generic implementation of a pair of values.
package pair
3 changes: 3 additions & 0 deletions pkg/pointer/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package pointer provides utilities for working with pointers.
// It includes functions for creating pointers, checking if they are nil, and retrieving the value if it is not nil.
package pointer
2 changes: 2 additions & 0 deletions pkg/pred/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package pred provides various generic predicate functions.
package pred
4 changes: 4 additions & 0 deletions pkg/stream/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Package stream provides an abstraction for working with a stream of values supporting sequential computational operations.
// Streams are lazy; computation on the source data is only performed when the terminal operation is initiated, and source elements are consumed only as needed.
// It is inspired by Java's `Stream` class.
package stream

0 comments on commit 3bf0d73

Please sign in to comment.