...

Source file src/github.com/datawire/ambassador/v2/pkg/agent/utils.go

Documentation: github.com/datawire/ambassador/v2/pkg/agent

     1  package agent
     2  
     3  // StrToPointer will return the pointer to the given string.
     4  func StrToPointer(str string) *string {
     5  	return &str
     6  }
     7  
     8  // Float64ToPointer will return the pointer to the given float.
     9  func Float64ToPointer(f float64) *float64 {
    10  	return &f
    11  }
    12  
    13  // Int64ToPointer will return the pointer to the given int64.
    14  func Int64ToPointer(i int64) *int64 {
    15  	return &i
    16  }
    17  

View as plain text