From 42e9af63aa0f12b1789615bec6ba0c2c9ba4aca6 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 14 Feb 2018 21:59:58 +0100 Subject: [PATCH] details about GetFeature --- v2ray.go | 1 + 1 file changed, 1 insertion(+) diff --git a/v2ray.go b/v2ray.go index 1d35af7cf..df4b04207 100644 --- a/v2ray.go +++ b/v2ray.go @@ -164,6 +164,7 @@ func (s *Instance) RegisterFeature(feature interface{}, instance Feature) error } // GetFeature returns a feature that was registered in this Instance. Nil if not found. +// The returned Feature must implement common.HasType and whose type equals the given feature type. func (s *Instance) GetFeature(featureType interface{}) Feature { for _, f := range s.features { if hasType, ok := f.(common.HasType); ok {