kvutil

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package kvutil

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValue

type KeyValue struct {
	// contains filtered or unexported fields
}

func NewKeyValue

func NewKeyValue() *KeyValue

func (*KeyValue) Encode

func (s *KeyValue) Encode() string

Encode 参数编号返回编码后的字符串

func (*KeyValue) Get

func (s *KeyValue) Get(key string) string

Get gets the first value associated with the given key. If there are no values associated with the key, Get returns the empty string. To access multiple values, use the map directly.

func (*KeyValue) Join

func (s *KeyValue) Join(a string, b string) string

Join 只拼接值不为空的参数

func (*KeyValue) JoinAll

func (s *KeyValue) JoinAll(a string, b string) string

JoinAll 对参数进行拼接

func (*KeyValue) JoinValues

func (s *KeyValue) JoinValues() string

func (*KeyValue) Set

func (s *KeyValue) Set(key, value string) *KeyValue

Set sets the key to value. It replaces any existing

func (*KeyValue) Sort

func (s *KeyValue) Sort() *KeyValue

Sort 对参数进行参数

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL