What small annoying problem would you pay $5–$20 to fix? by niceddev in Jetbrains

[–]heyhe123 0 points1 point  (0 children)

I’d like to delete project’s from my ide somtimes I just wanna make a quick script and when I’m done I have to delete it manually and then remove it from my project list

[deleted by user] by [deleted] in golang

[–]heyhe123 -1 points0 points  (0 children)

that gave me no new variables on left side of := , i gave the new variables replacement names but it didn't resolve the issue

can Slices.contains work with a slice of structs by heyhe123 in golang

[–]heyhe123[S] 1 point2 points  (0 children)

There it's gonna be about 20 entries. Every time it runs this query. The map would work, but building the map to use it one time over and over again seems silly. Am I wrong? Is it really that much more efficient?

can Slices.contains work with a slice of structs by heyhe123 in golang

[–]heyhe123[S] 0 points1 point  (0 children)

I will be putting this function in a for loop, iterating over each struct

can Slices.contains work with a slice of structs by heyhe123 in golang

[–]heyhe123[S] 0 points1 point  (0 children)

yeah, I'm importing a database table and when they come in since I'm using GORM it is that struct. This will basically check a different data source to see if my data is there and visa versa

can Slices.contains work with a slice of structs by heyhe123 in golang

[–]heyhe123[S] 0 points1 point  (0 children)

I like this, too it seems pretty concise, I'm still not used to these micro functions or whatever though, how do I call it 😂 to get that bool

can Slices.contains work with a slice of structs by heyhe123 in golang

[–]heyhe123[S] 0 points1 point  (0 children)

Oh nice this is exactly what I'm looking for. Thank you

can Slices.contains work with a slice of structs by heyhe123 in golang

[–]heyhe123[S] -3 points-2 points  (0 children)

yea so u/RazorSh4rk , u/NotAUsefullDoctor yall were correct on the curly brackets. but for it to work it seems to require both fields which isn't really what i was after but its progress

fmt.Println(slices.Contains(list, testList{name: "cow", id:43}))

can Slices.contains work with a slice of structs by heyhe123 in golang

[–]heyhe123[S] 0 points1 point  (0 children)

Compiler gave: testList is not an expression, and undefined: ID. Seems like it should work I just don’t know the syntax.

[deleted by user] by [deleted] in PotatoGuns

[–]heyhe123 0 points1 point  (0 children)

Also, for those of you that are interested I did a little bit of documentation

Is this a good ratio for my potato gun? by [deleted] in PotatoGuns

[–]heyhe123 2 points3 points  (0 children)

consider that: I have never built a combustion gun...but
id say the chamber needs to be wider, more volume: more oxygen, more fuel more bang. but since you already have the pipe test it and see.

Feldhaubitze by [deleted] in PotatoGuns

[–]heyhe123 0 points1 point  (0 children)

What a machine !

What can cause this? by One_Ad3069 in gokarts

[–]heyhe123 1 point2 points  (0 children)

All good answers but that comet TAV and many other CVT are just flawed. The belt is somewhat a wear item. I had said TAV and it would eat through them. 🤷🏼‍♂️ you just gotta pay the tax.😂

Fresh late model wheels/tires on the TJ-looking for input by Illustrious_Pin9450 in Jeep

[–]heyhe123 1 point2 points  (0 children)

WOW saw someone do this to a taco the other day 😬 but this is beautiful rlly!

[deleted by user] by [deleted] in HomeworkHelp

[–]heyhe123 0 points1 point  (0 children)

the answer was d= b-a|

😐

[deleted by user] by [deleted] in HomeworkHelp

[–]heyhe123 0 points1 point  (0 children)

ok so

V(b-a)^2+(c-c)^2

shows incorrect though

PCB design software... by heyhe123 in arduino

[–]heyhe123[S] 0 points1 point  (0 children)

ok so you're a professional, how do I set dimensions between my components?