github.com/rabbouni145/gg@v0.47.1/docs/content/en/functions/printf.md (about)

     1  ---
     2  title: printf
     3  linktitle: printf
     4  description: Formats a string using the standard `fmt.Sprintf` function.
     5  godocref: https://golang.org/pkg/fmt/
     6  date: 2017-02-01
     7  publishdate: 2017-02-01
     8  lastmod: 2017-02-01
     9  categories: [functions]
    10  menu:
    11    docs:
    12      parent: "functions"
    13  keywords: [strings]
    14  signature: ["printf FORMAT INPUT"]
    15  workson: []
    16  hugoversion:
    17  relatedfuncs: []
    18  deprecated: false
    19  ---
    20  
    21  See [the go doc](https://golang.org/pkg/fmt/) for additional information.
    22  
    23  ```
    24  {{ i18n ( printf "combined_%s" $var ) }}
    25  ```
    26  
    27  ```
    28  {{ printf "formatted %.2f" 3.1416 }}
    29  ```