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

Feat [Fiber Framework] ServerHeader and AppName depends of project name #203

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

H0llyW00dzZ
Copy link
Contributor

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

Problem/Feature

Add ServerHeader and AppName depends of project name

Note

This a cool feature from fiber

Description of Changes:

Example how it work:

$ go-blueprint create --name my-project --framework fiber --driver mysql


 ____  _                       _       _   
|  _ \| |                     (_)     | |  
| |_) | |_   _  ___ _ __  _ __ _ _ __ | |_ 
|  _ <| | | | |/ _ \ '_ \| '__| | '_ \| __|
| |_) | | |_| |  __/ |_) | |  | | | | | |_ 
|____/|_|\__,_|\___| .__/|_|  |_|_| |_|\__|
                   | |
                   |_|


            ..
             Next steps:
                         • cd into the newly created project with: `cd my-project`

$ cd my-project

$ go run cmd/api/main.go

 ┌───────────────────────────────────────────────────┐ 
 │                    my-project                     │ 
 │                   Fiber v2.52.4                   │ 
 │               http://127.0.0.1:8080               │ 
 │       (bound on host 0.0.0.0 and port 8080)       │ 
 │                                                   │ 
 │ Handlers ............. 4  Processes ........... 1 │ 
 │ Prefork ....... Disabled  PID .............. 9732 │ 
 └───────────────────────────────────────────────────┘ 

Checklist

  • I have self-reviewed the changes being requested
  • I have updated the documentation (if applicable)

- [+] feat(fiber.go.tmpl): add ServerHeader and AppName to FiberServer configuration
@H0llyW00dzZ
Copy link
Contributor Author

Note

Example how ServerHeader works:

image

@briancbarrow
Copy link
Collaborator

Looks good. Thanks @H0llyW00dzZ for submitting the PR.

@Ujstor Ujstor merged commit 184bbdd into Melkeydev:main Apr 2, 2024
128 checks passed
@H0llyW00dzZ H0llyW00dzZ deleted the fiber-template branch April 2, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants