8000 feat(go): add examples for dotprompt library usage by obutora · Pull Request #316 · google/dotprompt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(go): add examples for dotprompt library usage #316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

obutora
Copy link
@obutora obutora commented Jun 26, 2025

✨ What's new

This pull request introduces a new example directory within the Go package (go/example) to demonstrate how to use the dotprompt library.

It includes:

  • A sample .prompt file (example.prompt) that defines metadata and a template.
  • A main.go file that reads the .prompt file, compiles it, and renders the final prompt with sample data.
  • A doc.md providing instructions on how to run the example.

This will help new users understand the basic functionality of parsing .prompt files and generating prompts with the Go library.

@github-actions github-actions bot added documentation Improvements or additions to documentation go labels Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation go
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0