Skip to content

Fix comment position of first column of table #1377

Closed
@i16fujimoto

Description

@i16fujimoto

What version of SQLBoiler are you using (sqlboiler --version)?

SQLBoiler v4.16.0

Problem

Comment position in first column of table does not break line

Example auto generation code for sturuct

type Item struct { // 商品番号
	ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
	// メーカー
	Maker string `boil:"maker" json:"maker" toml:"maker" yaml:"maker"`
	// 作成日時
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	// 更新日時
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	// 削除日時
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *itemR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L itemL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Request

I want to fix following file, but I don't have permission to push to this repository, so I want to get it.

{{- range $column.Comment | splitLines -}} // {{ . }}
{{ end -}}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions