Skip to content

Commit

Permalink
feat: Separate logic for loading image file and including it in execu…
Browse files Browse the repository at this point in the history
…tion file
  • Loading branch information
milkcoke committed Mar 6, 2023
1 parent 20901f1 commit 0edad96
Show file tree
Hide file tree
Showing 22 changed files with 206 additions and 26 deletions.
14 changes: 14 additions & 0 deletions src/assets/asset.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package assets

import (
"embed"
)

//go:embed *
var assets embed.FS
var PythonBytes, _ = assets.ReadFile("python_logo.svg")
var NodeBytes, _ = assets.ReadFile("nodejs_logo.svg")
var GoBytes, _ = assets.ReadFile("gopher_logo.svg")
var DockerBytes, _ = assets.ReadFile("docker.svg")
var PostmanBytes, _ = assets.ReadFile("postman_logo.svg")
var NotionBytes, _ = assets.ReadFile("notion_logo.svg")
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions src/layout/assets/docker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/layout/assets/go_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions src/layout/assets/go_logo_aqua.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0edad96

Please sign in to comment.