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

create Data interface #11

Merged

Conversation

hblab-annq
Copy link
Collaborator

No description provided.

@hblab-annq hblab-annq self-assigned this Sep 9, 2022
@hblab-annq hblab-annq marked this pull request as draft September 9, 2022 05:08
Copy link
Owner

@hbl-ngocnd1 hbl-ngocnd1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

func (f *dictHandler) ApiITJapanWonderWord(c echo.Context) error {

Em sửa tiếp sao cho hàm này cũng gọi được thông qua getDataJapanese nhé

services/dictionary.go Outdated Show resolved Hide resolved

type MakeData func(c *html.Node, idx int, option ...string) Data

func MakeWord(c *html.Node, index int, options ...string) Data {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check length của options trước khi access để tránh lỗi panic index out of range

hblab-annq and others added 2 commits September 27, 2022 15:35
Co-authored-by: hbl-ngocnd1 <106229363+hbl-ngocnd1@users.noreply.github.com>
Copy link
Owner

@hbl-ngocnd1 hbl-ngocnd1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hblab-annq hblab-annq marked this pull request as ready for review October 4, 2022 10:33
@hblab-annq hblab-annq merged commit 65f4696 into refactor/refactor_getDictionary Oct 4, 2022
@hblab-annq hblab-annq deleted the draft/refactor_getDictionary branch October 4, 2022 10:33
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.

None yet

3 participants