@@ -2,7 +2,7 @@
package commander
-//go:generate errorgen
+//go:generate go run v2ray.com/core/common/errors/errorgen
import (
"context"
package dispatcher
@@ -2,4 +2,4 @@
@@ -1,4 +1,4 @@
// Package dns is an implementation of core.DNS feature.
package dns
package command
package log
// Package policy is an implementation of policy.Manager feature.
package policy
@@ -1,3 +1,3 @@
@@ -1,6 +1,6 @@
package inbound
package outbound
package reverse
package router
package stats
// Package buf provides a light-weight memory allocation mechanism.
package buf // import "v2ray.com/core/common/buf"
@@ -13,7 +13,7 @@ import (
"v2ray.com/core/common/errors"
)
var (
// ErrNoClue is for the situation that existing information is not enough to make a decision. For example, Router may return this error when there is no suitable route.
// Package crypto provides common crypto libraries for V2Ray.
package crypto // import "v2ray.com/core/common/crypto"
package mux
// Package net is a drop-in replacement to Golang's net package, with some more functionalities.
package net // import "v2ray.com/core/common/net"
@@ -10,7 +10,7 @@ import (
"v2ray.com/core/common/platform"
func Run(args []string, input io.Reader) (buf.MultiBuffer, error) {
v2ctl := platform.GetToolLocation("v2ctl")
package protocol // import "v2ray.com/core/common/protocol"
@@ -15,7 +15,7 @@ import (
"v2ray.com/core/common"
type Certificate struct {
// Cerificate in ASN.1 DER format
package retry // import "v2ray.com/core/common/retry"
"time"
@@ -9,8 +9,7 @@
// connections.
package core
-//go:generate go install "v2ray.com/core/common/errors/errorgen"
"runtime"
@@ -2,7 +2,7 @@ package features
import "v2ray.com/core/common"
// Feature is the interface for V2Ray features. All features must implement this interface.
// All existing features have an implementation in app directory. These features can be replaced by third-party ones.
"v2ray.com/core/common/net"
"os"
package conf
package serial
package control
package external
"bytes"
package json
"io"
package main
"flag"
@@ -4,7 +4,7 @@
package blackhole
package dokodemo
package freedom
package http
package mtproto
@@ -5,4 +5,4 @@
// R.I.P Shadowsocks
package shadowsocks
// Package socks provides implements of Socks protocol 4, 4a and 5.
package socks
package encoding
@@ -5,7 +5,7 @@
// clients with 'socks' for proxying.
package vless
const (
XRO = "xtls-rprx-origin"
@@ -5,7 +5,7 @@ import (
"v2ray.com/core/common/protocol"
Version = byte(1)
package vmess
package domainsocket
"bufio"
package internet
// xtaci@github for translating to Golang
package kcp
@@ -7,7 +7,7 @@ import (
"v2ray.com/core/transport/internet"
// Here is some modification needs to be done before update quic vendor.
// * use bytespool in buffer_pool.go
package tcp
@@ -9,7 +9,7 @@ import (
_ buf.Writer = (*Conn)(nil)
@@ -1,5 +1,5 @@
package udp
const protocolName = "udp"
@@ -4,4 +4,4 @@ Websocket transport implements an HTTP(S) compliable, surveillance proof transpo
*/
package websocket