Source file test/fixedbugs/issue44330.dir/a.go

     1  // Copyright 2021 The Go Authors. All rights reserved.  Use of this
     2  // source code is governed by a BSD-style license that can be found in
     3  // the LICENSE file.
     4  
     5  package a
     6  
     7  type Table struct {
     8  	ColumnSeparator bool
     9  	RowSeparator    bool
    10  
    11  	// ColumnResizer is called on each Draw. Can be used for custom column sizing.
    12  	ColumnResizer func()
    13  }
    14  
    15  func NewTable() *Table {
    16  	return &Table{
    17  		ColumnSeparator: true,
    18  		RowSeparator:    true,
    19  		ColumnResizer:   func() {},
    20  	}
    21  }
    22  

View as plain text