github.com/blend/go-sdk@v1.20240719.1/configutil/int64_func.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 var ( 13 _ Int64Source = (*Int64Func)(nil) 14 ) 15 16 // Int64Func is an int64 value source from a commandline flag. 17 type Int64Func func(context.Context) (*int64, error) 18 19 // Int64 returns an invocation of the function. 20 func (vf Int64Func) Int64(ctx context.Context) (*int64, error) { 21 return vf(ctx) 22 }