github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/views/components/view/Bool.html.go (about)

     1  // Code generated by qtc from "Bool.html". DO NOT EDIT.
     2  // See https://github.com/valyala/quicktemplate for details.
     3  
     4  // <!-- Content managed by Project Forge, see [projectforge.md] for details. -->
     5  
     6  //line views/components/view/Bool.html:2
     7  package view
     8  
     9  //line views/components/view/Bool.html:2
    10  import (
    11  	qtio422016 "io"
    12  
    13  	qt422016 "github.com/valyala/quicktemplate"
    14  )
    15  
    16  //line views/components/view/Bool.html:2
    17  var (
    18  	_ = qtio422016.Copy
    19  	_ = qt422016.AcquireByteBuffer
    20  )
    21  
    22  //line views/components/view/Bool.html:2
    23  func StreamBool(qw422016 *qt422016.Writer, b bool) {
    24  //line views/components/view/Bool.html:3
    25  	if b {
    26  //line views/components/view/Bool.html:3
    27  		qw422016.N().S(`true`)
    28  //line views/components/view/Bool.html:3
    29  	} else {
    30  //line views/components/view/Bool.html:3
    31  		qw422016.N().S(`false`)
    32  //line views/components/view/Bool.html:3
    33  	}
    34  //line views/components/view/Bool.html:4
    35  }
    36  
    37  //line views/components/view/Bool.html:4
    38  func WriteBool(qq422016 qtio422016.Writer, b bool) {
    39  //line views/components/view/Bool.html:4
    40  	qw422016 := qt422016.AcquireWriter(qq422016)
    41  //line views/components/view/Bool.html:4
    42  	StreamBool(qw422016, b)
    43  //line views/components/view/Bool.html:4
    44  	qt422016.ReleaseWriter(qw422016)
    45  //line views/components/view/Bool.html:4
    46  }
    47  
    48  //line views/components/view/Bool.html:4
    49  func Bool(b bool) string {
    50  //line views/components/view/Bool.html:4
    51  	qb422016 := qt422016.AcquireByteBuffer()
    52  //line views/components/view/Bool.html:4
    53  	WriteBool(qb422016, b)
    54  //line views/components/view/Bool.html:4
    55  	qs422016 := string(qb422016.B)
    56  //line views/components/view/Bool.html:4
    57  	qt422016.ReleaseByteBuffer(qb422016)
    58  //line views/components/view/Bool.html:4
    59  	return qs422016
    60  //line views/components/view/Bool.html:4
    61  }