github.com/searKing/golang/go@v1.2.117/context/tags.nop.go (about)

     1  // Copyright 2020 The searKing Author. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package context
     6  
     7  type nopTags struct{}
     8  
     9  func (t *nopTags) Set(key string, value any) {
    10  	return
    11  }
    12  
    13  func (t *nopTags) Get(key string) (any, bool) {
    14  	return nil, false
    15  }
    16  
    17  // Del deletes the values associated with key.
    18  func (t *nopTags) Del(key string) {
    19  	return
    20  }
    21  func (t *nopTags) Values() map[string]any {
    22  	return nil
    23  }