import strformat import strutils import sequtils import json import logging echo "clib initialized" proc hello_echo*(message:cstring):cstring {.exportc.} = let msg = $message ## Echo a message back result = &"{msg} from nim" # echo &"Nim echo result: {result}"