shared/generate/file/buffer.go
func (b *Buffer) code() ([]byte, error) {
	code, err := format.Source(b.buf.Bytes())
	if err != nil {
		return nil, errors.Wrap(err, "Can't format generated source code")
	}
	return code, nil
}
func (b *Buffer) code() ([]byte, error) {
	code, err := format.Source(b.buf.Bytes())
	if err != nil {
		return nil, errors.Wrap(err, "Can't format generated source code")
	}
	return code, nil
}
func ( b * Buffer ) code ( ) ( [ ] byte , error ) { code , err := format . Source ( b . buf . Bytes ( ) ) if err != nil { return nil , errors . Wrap ( err , " " ) } return code , nil }
// Returns the source code to add to the target file.
Returns the source code to add to the target file .