Skip to content

issues Search Results · repo:samber/lo language:Go

Filter by

245 results
 (68 ms)

245 results

insamber/lo (press backspace or delete to remove)

If the is-empty determination uses reflect.ValueOf( x).Elem().IsZero() then that function can usefully work on any type, not just comparables.
  • FGasper
  • 2
  • Opened 
    8 days ago
  • #660

First off thank you for making this library, it s really cool! Looking for advise related to performance impact of chaining functions like map, filter, etc if you get a chance. Coming from a language ...
ro
  • neskandary-vistar
  • 2
  • Opened 
    28 days ago
  • #654

Hello, Would it be possible to add a way to seed the random source used in RandomString? Currently the RandomString calls rand.Int64 which calls stdlib rand.Int64. I know there is a way to use stdlib rand.Seed ...
  • Veermove
  • 1
  • Opened 
    on Jun 10
  • #642

There are toSet functions like keyify, but set operations only have slice-related functions. Are there plans to add set operations to set?
  • haohanyuzmx
  • 3
  • Opened 
    on Jun 9
  • #640

Hi, there. I sometimes wrap lo.Map. Because I wanna check an error. Error checking can also be done in the following ways. somethings := lo.FilterMap(slice, func(v T, _ int) (T, bool) { result, err ...
  • ei-sugimoto
  • 1
  • Opened 
    on Jun 6
  • #639

Does lo have C/C++ s assert() equivalent? My current workaround is to manually implement assert(): package main func assert(condition bool, message ...any) { if !condition { if len(message) 0 { ...
  • your-diary
  • 6
  • Opened 
    on May 13
  • #634

similar argument to https://github.com/samber/lo/issues/54 to get an alias SomeBy sounds very complicated to me and what I m usually asking is are any X? ... ideally Any since to me Any([1,2,3], [1,2]) ...
  • grosser
  • Opened 
    on May 9
  • #632

Test code https://go.dev/play/p/LIx60Wu_tT9 As expected it should work.
  • moneyease
  • 2
  • Opened 
    on Apr 3
  • #617

To filter the map and add the required values
  • rasha108bik
  • Opened 
    on Mar 30
  • #614

-
  • zhwei820
  • Opened 
    on Mar 28
  • #613
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub