stringer.go 679 B

1234567891011121314151617181920212223242526
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package prototype
  5. import (
  6. "fmt"
  7. "google.golang.org/proto/internal/pragma"
  8. pref "google.golang.org/proto/reflect/protoreflect"
  9. )
  10. // TODO: This is useful for print descriptor types in a human readable way.
  11. // This is not strictly necessary.
  12. // list is an interface that matches any of the list interfaces defined in the
  13. // protoreflect package.
  14. type list interface {
  15. Len() int
  16. pragma.DoNotImplement
  17. }
  18. func formatList(s fmt.State, r rune, vs list) {}
  19. func formatDesc(s fmt.State, r rune, t pref.Descriptor) {}