---
title: hex
slug: hex
createdAt: 2025-09-24T15:33:22.265Z
---

# Module - "hex"

:::CodeblockTabs
Tengo

```go
hex := import("hex")
```
:::

## Functions

- `encode(src)`: returns the hexadecimal encoding of src.
- `decode(s)`: returns the bytes represented by the hexadecimal string s.

