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

chore: use relative import paths, as it is now supported #23

Merged
merged 1 commit into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion curl/instructions/common.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module instructions

import vibe.curl.state
import state

fn C.curl_global_init(state.GlobalInitFlag)

Expand Down
2 changes: 1 addition & 1 deletion curl/instructions/easy.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module instructions

import vibe.curl.state
import state

fn C.curl_easy_init() &C.CURL
fn C.curl_easy_cleanup(&C.CURL)
Expand Down
4 changes: 2 additions & 2 deletions curl/lib.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ License: MIT

module curl

import vibe.curl.instructions
import vibe.curl.state
import instructions
import state

#flag -lcurl
#include <curl/curl.h>
Expand Down
2 changes: 1 addition & 1 deletion src/_instruction_download.v
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module vibe

import os
import vibe.curl
import curl

fn (req Request) download_file_(url string, file_path string) !Response {
h := curl.easy_init() or { return http_error(.easy_init, none) }
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_common.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module vibe

import vibe.curl
import curl

// Automatically call curl_global_init when using `vibe`.
fn init() {
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_get.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module vibe

import vibe.curl
import curl

fn (req Request) get_(url string) !Response {
// Curl handle
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_head.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module vibe

import vibe.curl
import curl

fn (req Request) head_(url string) !Response {
h := curl.easy_init() or { return http_error(.easy_init, none) }
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_header.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module vibe

import vibe.curl
import curl

fn set_header(handle &curl.Handle, headers HttpHeaders) &curl.LinkedList {
mut list := &curl.LinkedList(unsafe { nil })
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_post.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module vibe

import vibe.curl
import curl

fn (req Request) post_(url string, data string) !Response {
h := curl.easy_init() or { return http_error(.easy_init, none) }
Expand Down
Loading