
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
github.com/jiazhoulvke/simple_query_builder
Advanced tools
简单的SQL生成器,是一个只用了一个晚上写的简单玩具,仅供自娱自乐。
go get -v github.com/jiazhoulvke/simple_query_builder
package main
import (
"fmt"
sqb "github.com/jiazhoulvke/simple_query_builder"
)
func main() {
sql, args := sqb.Select("table1", "*").Where(
sqb.Or(
sqb.Equal("field1", 123),
sqb.Like("field2", "abc"),
),
sqb.Or(
sqb.NotEqual("field3", 1.23),
sqb.Like("field4", "%foo%"),
),
).
Limit(10).
Offset(20).
Build()
fmt.Println(sql, args)
//SELECT * FROM table1 WHERE ((field1=?) OR (field2<>?)) AND ((field3 IS NULL) OR (field4 LIKE '%foo%')) LIMIT 10 OFFSET 20 [123 abc]
}
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.