strukt

package
v0.13.1 Latest Latest
Warning

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

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

Documentation

Overview

Package strukt provides parsing strings with delimiter-separated fields into structs consisting of sufficient exported string fields.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(s string, delim string, strukt any) error

Unmarshal a string with multiple delimited fields into the given struct, returning nil on success. The fields of the struct are filled in their sequence of definition.

If there are less fields in the string than struct fields, the remaining struct fields will be left as is. Unmarshal returns an error if there are more delemited fields than struct fields.

Types

This section is empty.

Jump to

Keyboard shortcuts

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