github.com/keysonZZZ/kmg@v0.0.0-20151121023212-05317bfd7d39/kmgView/kmgGoTpl/testFile/test6Import.go.good (about)

     1  package example
     2  
     3  import (
     4  	"bytes"
     5  	"github.com/bronze1man/kmg/kmgXss"
     6  	"strconv"
     7  )
     8  
     9  // import 测试
    10  func tplTest6() string {
    11  	a := 1
    12  	var _buf bytes.Buffer
    13  	_buf.WriteString(`<p>`)
    14  	_buf.WriteString(kmgXss.H(strconv.Itoa(a)))
    15  	_buf.WriteString(`</p>`)
    16  	return _buf.String()
    17  }