From e2fdf9a0a39efa14ec98991f8405d1b1a4e61355 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Thu, 16 Nov 2023 03:08:07 +0100 Subject: [PATCH] docs: update install commands --- README.md | 14 ++++++++++++-- src/_state_common.v | 4 +--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f808272..9d8cdcc 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,24 @@ higher-level API. - Install via V's cli - ``` - v install --git https://github.com/ttytm/vibe + ```sh + # Into `/vibe` + v install https://github.com/ttytm/vibe + # OR as vpm module under a namespace `/ttytm/vibe` + v install ttytm.vibe ``` ## Usage examples #### GET request +> **NOTE** +> For installations as VPM module use +> +> ```v +> import ttytm.vibe +> ``` + ```v import vibe diff --git a/src/_state_common.v b/src/_state_common.v index f76a9c7..74239db 100644 --- a/src/_state_common.v +++ b/src/_state_common.v @@ -1,6 +1,6 @@ module vibe -import vibe.curl.state +import curl.state import time pub struct Request { @@ -36,6 +36,4 @@ enum Method { head } -// vfmt off pub type CustomInitFlag = state.GlobalInitFlag -// vfmt on