package main
import (
"encoding/hex"
"fmt"
)
func main() {
str := "6e696c706f696e7465722e6e6574"
result, err := hex.DecodeString(str)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(string(result))
}
}
Output
nilpointer.net