astoverlay

package
v0.0.0-...-eec0033 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package astoverlay provides helper functions for overlaying various kinds of asterisk data.

This package is a work-in-progress and may receive breaking changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AstInt

func AstInt(from, to *astval.Int)

AstInt overlays two asterisk Int values.

If from holds a specified value, the value of to will be replaced with from.

func AstSeconds

func AstSeconds(from, to *astval.Seconds)

AstSeconds overlays two asterisk Seconds values.

If from holds a specified value, the value of to will be replaced with from.

func AstString

func AstString(from, to *astval.String)

AstString overlays two asterisk String values.

If from holds a specified value, the value of to will be replaced with from.

func AstVarSlice

func AstVarSlice(from, to *[]astval.Var)

AstVarSlice overlays two asterisk variable value slices.

func AstYesNoNone

func AstYesNoNone(from, to *astval.YesNoNone)

AstYesNoNone overlays two asterisk YesNoNone values.

If from holds a specified value, the value of to will be replaced with from.

func Duration

func Duration(from, to *time.Duration)

Duration overlays two duration values.

If from is non-empty, the value of to will be replaced with from.

func Int

func Int(from, to *int)

Int overlays two int values.

If from is non-empty, the value of to will be replaced with from.

func SectionName

func SectionName(from, to *astconf.SectionName)

SectionName overlays two asterisk section names.

If from is non-empty, the value of to will be replaced with from.

func String

func String(from, to *string)

String overlays two string values.

If from is non-empty, the value of to will be replaced with from.

func StringSlice

func StringSlice(from, to *[]string)

StringSlice overlays two string slices.

If from is non-empty, the value of to will be replaced with from.

Types

This section is empty.

Jump to

Keyboard shortcuts

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