Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nasa9084/scangen
https://github.com/nasa9084/scangen
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nasa9084/scangen
- Owner: nasa9084
- Created: 2017-10-24T06:11:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-24T06:37:29.000Z (about 7 years ago)
- Last Synced: 2024-10-05T00:40:53.436Z (about 1 month ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
scangen
=======scangen generates *sql.Row scan method for given struct.
## Example:
apply scangen for struct below:
``` go
type SomeStruct struct {
Name string
Age int
}
```then scangen generates:
``` go
func (someStruct *SomeStruct) Scan(sc interface{
Scan(...interface{}) error
} error {
return sc.Scan(&someStruct.Name, &someStruct.Age)
}
```## KNOWN ISSUE
* when given a filename to arguments, package will be empty