KO
|
EN
gitlite — search
Search
#python
#javascript
#machine-learning
#react
#reactjs
#deep-learning
#pytorch
#audio
#json
#flutter
#c
#security
filler
★ 18
Open GitHub ↗
fill struct data easily with fill tags
Download README (.md)
Explore Similar Repositories
gtag
:
Help you to get golang struct's tags elegantly.
go-reflectx
:
Go reflection library to find struct field by its tag
tagfmt
:
Tagfmt formats struct tag within Go programs.
go-tagger.nvim
:
Lightweight Neovim plugin to manage struct field tags in Go source files.
hamr
:
The Go framework for building MCP servers. Your struct tags are your schema.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
filler
?
Download (.md)
# filler [](https://goreportcard.com/report/github.com/yaronsumel/filler) [](https://travis-ci.org/yaronsumel/filler) [](https://godoc.org/github.com/yaronsumel/filler) ###### small util to fill gaps in your structs Installation ------ ```bash $ go get github.com/yaronsumel/filler ``` [Usage](https://github.com/yaronsumel/filler/blob/master/example/example.go) ------ ```go package main import ( "fmt" "github.com/yaronsumel/filler" ) type model struct { UserID string UserName string `fill:"UserNameFiller:UserID"` } func init() { filler.RegFiller("UserNameFiller", func(value interface{}) (interface{}, error) { return "UserId" + value.(string), nil }) } func main() { m := &model{ UserID: "123", } fmt.Printf("%+v\n", m) // should print `&{UserId:123 UserName:}` filler.Fill(m) // should print `&{UserId:123 UserName:UserId123}` fmt.Printf("%+v\n", m) } ``` > ##### Written and Maintained by [@YaronSumel](https://twitter.com/yaronsumel) #####