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 a bounded text interface parameter for ctx.Reply #55

Open
celestix opened this issue Feb 7, 2024 · 0 comments
Open

Add a bounded text interface parameter for ctx.Reply #55

celestix opened this issue Feb 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@celestix
Copy link
Owner

celestix commented Feb 7, 2024

As discussed in #19, text is a raw unbounded interface currently which can cause problems in many ways. To avoid it, we should add a bounded interface with at least one private method to prevent people breaking the library from external manipulation.

type InputText interface{
    isAPrivateMethodYetToBeNamed()
}
@celestix celestix added the enhancement New feature or request label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant