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

Add context Writef feature function #1841

Merged
merged 1 commit into from Apr 1, 2022
Merged

Conversation

asyslinux
Copy link
Contributor

@asyslinux asyslinux commented Mar 30, 2022

Please provide enough information so that others can review your pull request:

Request to add additional function ctx.Writef(f string, a ...interface{}) . Tests included.

Explain the details for making this change. What existing problem does the pull request solve?

The ability to use sending a response with data as in other web frameworks that have this feature.

Example:

world := "World!"
_, err = ctx.Writef("Hello, %s\n", world)
if err != nil {
    log.Fatal(err)
}

@welcome
Copy link

welcome bot commented Mar 30, 2022

Thanks for opening this pull request! 🎉 Please check out our contributing guidelines. If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

@ReneWerner87
Copy link
Member

ReneWerner87 commented Mar 30, 2022

thx for the feature PR

@asyslinux
Copy link
Contributor Author

asyslinux commented Mar 30, 2022

gofiber/docs#250 - documentation

@ReneWerner87
Copy link
Member

ReneWerner87 commented Mar 30, 2022

Thx

@ReneWerner87 ReneWerner87 merged commit 16b8717 into gofiber:master Apr 1, 2022
16 checks passed
@welcome
Copy link

welcome bot commented Apr 1, 2022

Congrats on merging your first pull request! 🎉 We here at Fiber are proud of you! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

trim21 pushed a commit to trim21/fiber that referenced this issue Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants