func (m Message) Format(s fmt.State, r rune) {
	switch r {
	case 'x':
		io.WriteString(s, fmt.Sprintf("%x", m.Marshal()))
	case 'X':
		io.WriteString(s, fmt.Sprintf("%X", m.Marshal()))
	case 'v':
		switch {
		case s.Flag('#'):
			io.WriteString(s, m.format(true, true))
		case s.Flag('+'):
			io.WriteString(s, m.format(false, true))
		default:
			io.WriteString(s, m.format(false, false))
		}
	default:
		panic("invalid verb: " + string(r))
	}
}
// Format implements a custom formatter to visualize the syntax tree.
// Using "%#v" formats the Message in Go source code.
Format implements a custom formatter to visualize the syntax tree.
Using "%#v" formats the Message in Go source code.
// Format implements a custom formatter to visualize the syntax tree . // Using " %#v " formats the Message in Go source code .
func (m Message) Format(s fmt.State, r rune) {
	switch r {
	case 'x':
		io.WriteString(s, fmt.Sprintf("%x", m.Marshal()))
	case 'X':
		io.WriteString(s, fmt.Sprintf("%X", m.Marshal()))
	case 'v':
		switch {
		case s.Flag('#'):
			io.WriteString(s, m.format(true, true))
		case s.Flag('+'):
			io.WriteString(s, m.format(false, true))
		default:
			io.WriteString(s, m.format(false, false))
		}
	default:
		panic("invalid verb: " + string(r))
	}
}
func ( m Message ) Format ( s fmt . State , r rune ) { switch r { case 'x' : io . WriteString ( s , fmt . Sprintf ( " " , m . Marshal ( ) ) ) case 'X' : io . WriteString ( s , fmt . Sprintf ( " " , m . Marshal ( ) ) ) case 'v' : switch { case s . Flag ( '#' ) : io . WriteString ( s , m . format ( true , true ) ) case s . Flag ( '+' ) : io . WriteString ( s , m . format ( false , true ) ) default : io . WriteString ( s , m . format ( false , false ) ) } default : panic ( " " + string ( r ) ) } }
Format implements a custom formatter to visualize the syntax tree.
Format implements a custom formatter to visualize the syntax tree .