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

Update govatar.go #18

Closed
wants to merge 1 commit into from
Closed

Update govatar.go #18

wants to merge 1 commit into from

Conversation

deep-project
Copy link

An error was found

win10
go 1.16
govatar 0.4.0

panic: open data\background\backgroundX.png: file does not exist

image

An error was found
------------------
win10 
go 1.16
govatar 0.4.0

`panic: open data\background\backgroundX.png: file does not exist`

![image](https://user-images.githubusercontent.com/24670171/110659388-80a5f180-81fd-11eb-9d02-eabd0990ebb6.png)
Comment on lines 178 to +179
assets[i] = filepath.Join(dir, dirEntry.Name())
assets[i] = filepath.ToSlash(assets[i])
Copy link
Owner

Choose a reason for hiding this comment

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

It's better to use path.Join() instead.

Copy link
Author

Choose a reason for hiding this comment

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

Got it.

@o1egl
Copy link
Owner

o1egl commented Mar 14, 2021

Fixed in #19

@o1egl o1egl closed this Mar 14, 2021
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.

2 participants