str

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFromPtr

func ExtractFromPtr(p *string) string

ExtractFromPtr 若入参指针为nil,则返回空字符串;否则,返回指针指向的内存所存储的字符串。

func NonEmptyToPtr

func NonEmptyToPtr(v string) *string

NonEmptyToPtr 若入参v非空字符串,则返回其指针;否则返回nil。

Types

This section is empty.

Jump to

Keyboard shortcuts

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