---
title: encoding.HexEncode
description: Returns the hexadecimal encoding of the given content.
categories: []
keywords: []
params:
  functions_and_methods:
    aliases: []
    returnType: string
    signatures: [encoding.HexEncode INPUT]
---

```go-html-template
{{ "Hello world" | encoding.HexEncode }} → 48656c6c6f20776f726c64
```
