Skip to content

Commit

Permalink
update: remove debug print statements and update godoc
Browse files Browse the repository at this point in the history
Signed-off-by: Milos Gajdos <[email protected]>
  • Loading branch information
milosgajdos committed Apr 5, 2024
1 parent d67a5cf commit bf24cee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion document/text/splitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ func (s *Splitter) merge(splits []string, sep Sep) []string {
// Split splits the text over a separator optionally keeping
// the separator and returns the the chunks in a slice.
// If the separator is empty string it splits on individual characters.
// TODO: rename this to Split
func (s *Splitter) Split(text string, sep Sep) []string {
if sep.Value != "" {
if s.keepSep {
Expand Down
3 changes: 1 addition & 2 deletions request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func Do[T error](client *client.HTTP, req *http.Request) (*http.Response, error)
return nil, apiErr
}

// Option is http requestion functional option.
// Option is http request functional option.
type Option func(*http.Request)

// WithBearer sets the Authorization header to the provided Bearer token.
Expand Down Expand Up @@ -92,6 +92,5 @@ func WithAddHeader(key, val string) Option {
req.Header = make(http.Header)
}
req.Header.Add(key, val)
fmt.Println(req.Header)
}
}

0 comments on commit bf24cee

Please sign in to comment.