Skip to content

Commit

Permalink
refactor: use pseudo var instead embedded v.mod file
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Jul 6, 2023
1 parent de204bd commit 0da8b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module vibe

import v.vmod

const manifest = vmod.decode($embed_file('../v.mod').to_string()) or { panic(err) }
const manifest = vmod.decode(@VMOD_FILE) or { panic(err) }

// get sends a GET request to the specified `url` and returns the response.
pub fn get(url string) !Response {
Expand Down

0 comments on commit 0da8b5b

Please sign in to comment.