I would like to write a shell script that should call a function from here document as below:

```
#!/bin/bash
funexit 
funexit  ()
{
  exit 1
}

cat <<:EOD:
funexit 
:EOD:

```

Please suggest a good solution to me!