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 ¶
- func AstInt(from, to *astval.Int)
- func AstSeconds(from, to *astval.Seconds)
- func AstString(from, to *astval.String)
- func AstVarSlice(from, to *[]astval.Var)
- func AstYesNoNone(from, to *astval.YesNoNone)
- func Duration(from, to *time.Duration)
- func Int(from, to *int)
- func SectionName(from, to *astconf.SectionName)
- func String(from, to *string)
- func StringSlice(from, to *[]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AstInt ¶
AstInt overlays two asterisk Int values.
If from holds a specified value, the value of to will be replaced with from.
func AstSeconds ¶
AstSeconds overlays two asterisk Seconds values.
If from holds a specified value, the value of to will be replaced with from.
func AstString ¶
AstString overlays two asterisk String values.
If from holds a specified value, the value of to will be replaced with from.
func AstVarSlice ¶
AstVarSlice overlays two asterisk variable value slices.
func AstYesNoNone ¶
AstYesNoNone overlays two asterisk YesNoNone values.
If from holds a specified value, the value of to will be replaced with from.
func 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.