https://github.com/ceshihao/multilines-struct-tag
Golang struct supports multilines tags
https://github.com/ceshihao/multilines-struct-tag
golang multiline struct-tag
Last synced: 5 months ago
JSON representation
Golang struct supports multilines tags
- Host: GitHub
- URL: https://github.com/ceshihao/multilines-struct-tag
- Owner: ceshihao
- License: mit
- Created: 2019-03-19T05:48:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T08:23:30.000Z (about 7 years ago)
- Last Synced: 2024-06-20T06:25:05.459Z (almost 2 years ago)
- Topics: golang, multiline, struct-tag
- Language: Go
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Multilines Struct Tag
Golang struct supports multilines tags
[](https://travis-ci.org/ceshihao/multilines-struct-tag)
[](https://goreportcard.com/report/github.com/ceshihao/multilines-struct-tag)
[](https://godoc.org/github.com/ceshihao/multilines-struct-tag)
[](https://coveralls.io/github/ceshihao/multilines-struct-tag?branch=master)
## Background
There was a [propose](https://github.com/golang/go/issues/15893) to accept multilines struct tag in golang, but rejected.
This package is based on Golang standard library.
https://golang.org/pkg/reflect/#StructTag.Get
https://golang.org/pkg/reflect/#StructTag.Lookup
## Notice
Multilines struct tag violates the rule in `go vet`.