Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
RangelReale committed Oct 14, 2023
1 parent 1dbb189 commit 19edcd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package debefix

import "io/fs"

// Generate loads files and calls a resolver callback to resolve the values.
// Generate loads files and calls a resolver callback to resolve the values, and returns the resolved data.
// It is a combination of [Load] and [Resolve].
func Generate(fileProvider FileProvider, resolver ResolveCallback, options ...GenerateOption) (*Data, error) {
return generate(func(g *generator) FileProvider {
Expand Down
3 changes: 2 additions & 1 deletion resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (
"github.com/google/uuid"
)

// Resolve calls a callback for each table row, taking table dependency in account.
// Resolve calls a callback for each table row, taking table dependency in account,
// and returns the resolved data.
func Resolve(data *Data, f ResolveCallback, options ...ResolveOption) (*Data, error) {
r := &resolver{data: data}
for _, opt := range options {
Expand Down

0 comments on commit 19edcd1

Please sign in to comment.