1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-08-10 22:31:32 +02:00

fix: disable inlining of debug functions

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2024-02-07 13:41:47 +01:00
parent a774d63e66
commit 79652d8474
2 changed files with 11 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ type (
)
// String prints some debug info for the object
//
// go:noinline
func eitherString(s *either) string {
if s.isLeft {
return fmt.Sprintf("Left[%T](%v)", s.value, s.value)
@@ -38,6 +40,8 @@ func eitherString(s *either) string {
}
// Format prints some debug info for the object
//
// go:noinline
func eitherFormat(e *either, f fmt.State, c rune) {
switch c {
case 's':