plain

doc codec


[ Encoder usage ] [ Decoder usage ]

Encoder usage

Synopsys

codec => plain {
}

Available settings

Setting Type Info Default value
charset string "UTF-8"
format location "{{.message}}"
var hash {}

Details

charset

  • Value type is string
  • Default value is "UTF-8"
  • One of "US-ASCII" "ISO-8859-1" "latin1" "arabic" "hebrew" "Shift_JIS" "EUC-KR" "ISO-2022-JP" "ISO-8859-15" "IBM869" "windows-1252" ...

    See the IANA registry for more details

    format

  • Value type is location
  • Default value is "{{.message}}"
  • Format as a golang text/template

    var

  • Value type is hash
  • Default value is {}
  • You can set variable to be used in Statements by using ${var}. each reference will be replaced by the value of the variable found in Statement’s content The replacement is case-sensitive.

    Full configuration blueprint

    Expand me...

    Decoder usage

    Synopsys

    codec => plain {
    }
    

    Available settings

    Setting Type Info Default value
    charset string "UTF-8"

    Details

    charset

  • Value type is string
  • Default value is "UTF-8"
  • One of "US-ASCII" "ISO-8859-1" "latin1" "arabic" "hebrew" "Shift_JIS" "EUC-KR" "ISO-2022-JP" "ISO-8859-15" "IBM869" "windows-1252" ...

    See the IANA registry for more details

    Full configuration blueprint

    Expand me...