github.com/blend/go-sdk@v1.20240719.1/configutil/float64_source.go (about) 1 /* 2 3 Copyright (c) 2024 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package configutil 9 10 import "context" 11 12 // Float64Source is a type that can return a value. 13 type Float64Source interface { 14 // Float should return a float64 if the source has a given value. 15 // It should return nil if the value is not found. 16 // It should return an error if there was a problem fetching the value. 17 Float64(context.Context) (*float64, error) 18 }