Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use embeds for home files in chat examples#952

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
eldondev wants to merge1 commit intogorilla:main
base:main
Choose a base branch
Loading
fromeldondev:main

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 directlyfrom whatever directory the program is run in,embed the files in the binary.
@WofWca
Copy link

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.

@ghost
Copy link

Benefits of this change are:

  • thecd step for running the example can be deleted.
  • the example can bego installed.
  • the example will follow current best practices for accessing static assets.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@eldondev@WofWca

[8]ページ先頭

©2009-2025 Movatter.jp