// String implements the fmt.Stringer.
String implements the fmt.Stringer.
// String implements the fmt . Stringer .
func (gr *Grant) String() string {
	var builder strings.Builder
	builder.WriteString("Grant(")
	builder.WriteString(fmt.Sprintf("id=%v", gr.ID))
	builder.WriteString(", created_at=")
	builder.WriteString(gr.CreatedAt.Format(time.ANSIC))
	builder.WriteString(", updated_at=")
	builder.WriteString(gr.UpdatedAt.Format(time.ANSIC))
	if v := gr.DeletedAt; v != nil {
		builder.WriteString(", deleted_at=")
		builder.WriteString(v.Format(time.ANSIC))
	}
	builder.WriteString(", hashed_grant_token=<sensitive>")
	builder.WriteString(", domain=")
	builder.WriteString(gr.Domain)
	builder.WriteString(", version=")
	builder.WriteString(gr.Version)
	builder.WriteString(", allowed_http_methods=")
	builder.WriteString(gr.AllowedHTTPMethods)
	builder.WriteString(", paths=")
	builder.WriteString(fmt.Sprintf("%v", gr.Paths))
	builder.WriteByte(')')
	return builder.String()
}
func ( gr * Grant ) String ( ) string { var builder strings . Builder builder . WriteString ( " " ) builder . WriteString ( fmt . Sprintf ( " " , gr . ID ) ) builder . WriteString ( " " ) builder . WriteString ( gr . CreatedAt . Format ( time . ANSIC ) ) builder . WriteString ( " " ) builder . WriteString ( gr . UpdatedAt . Format ( time . ANSIC ) ) if v := gr . DeletedAt ; v != nil { builder . WriteString ( " " ) builder . WriteString ( v . Format ( time . ANSIC ) ) } builder . WriteString ( " " ) builder . WriteString ( " " ) builder . WriteString ( gr . Domain ) builder . WriteString ( " " ) builder . WriteString ( gr . Version ) builder . WriteString ( " " ) builder . WriteString ( gr . AllowedHTTPMethods ) builder . WriteString ( " " ) builder . WriteString ( fmt . Sprintf ( " " , gr . Paths ) ) builder . WriteByte ( ')' ) return builder . String ( ) }
String implements the fmt.Stringer.
String implements the fmt . Stringer .