INNER CODE UNIT · Go

c

pace/bricks · tools/testserver/main.go:147

		c := math.NewMathServiceClient(conn)
		o, err := c.Add(ctx, &math.Input{
			A: 1,
			B: 23,
		})
		if err != nil {
			log.Ctx(ctx).Debug().Err(err).Msg("failed to add")
			return
		}
		log.Ctx(ctx).Info().Msgf("C: %d", o.C)

		ctx = locale.WithLocale(ctx, locale.NewLocale("fr-CH", "Europe/Paris"))

		_, err = c.Add(ctx, &math.Input{})
		if err != nil {
			log.Ctx(ctx).Debug().Err(err).Msg("failed to substract")
			return
		}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…