Skip to content
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

Use embeds for home files in chat examples #952

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

Conversation

eldondev
Copy link

Rather than serving up the html files directly
from whatever directory the program is run in,
embed the files in the binary.

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Go Version Update
  • Dependency Update

Description

Added/updated tests?

  • No, and this is why: Just example code

Run verifications and test

  • I don't see any makefiles?
  • make verify is passing
  • make test is passing

Rather than serving up the html files directly
from whatever directory the program is run in,
embed the files in the binary.
@WofWca
Copy link

WofWca commented Nov 16, 2024

IDK IDK. It's pretty common for web servers to serve files instead of embedding them in the binary. This IMO complicates the example without a practical benefit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants