30+ results for 'format(args lang:Go' (0 ms)
Not the results you expected?
builtins.go (https://github.com/42wim/matterbridge.git) Go · 611 lines
log.go (https://github.com/jbardin/gotrace.git) Go · 119 lines
gomod_export.go (https://github.com/qiniu/goplus.git) Go · 577 lines
185 func execmTimeFormat(_ int, p *gop.Context) {
186 args := p.GetArgs(2)
187 ret0 := args[0].(time.Time).Format(args[1].(string))
188 p.Ret(2, ret0)
189 }
191 func execmTimeAppendFormat(_ int, p *gop.Context) {
192 args := p.GetArgs(3)
193 ret0 := args[0].(time.Time).AppendFormat(args[1].([]byte), args[2].(string))
194 p.Ret(3, ret0)
195 }
var_func.go (https://github.com/TeaWeb/build.git) Go · 249 lines
godis.go (git://github.com/simonz05/godis.git) Go · 210 lines
unicode.go (git://github.com/qur/gopy.git) Go · 208 lines
commands.go (https://github.com/yezihack/go-mygen.git) Go · 184 lines
errors.go (https://github.com/jdcloud-bds/bds.git) Go · 168 lines
exec.go (https://github.com/merklecounty/rget.git) Go · 143 lines
55 Gen(args []string, dryRun bool) error
56 Lint(args []string, listAllLinters bool, listLinters bool, listAllLintGroups bool, listLintGroup string, diffLintGroups string, generateIgnores bool) error
57 Format(args []string, overwrite, diffMode, lintMode, fix bool) error
58 All(args []string, disableFormat, disableLint, fix bool) error
59 GRPC(args, headers []string, address, method, data, callTimeout, connectTimeout, keepaliveTime string, stdin bool, details bool, tls bool, insecure bool, cacert string, cert string, key string, serverName string) error
fmt.go (https://github.com/MontFerret/ferret.git) Go · 87 lines
executor.go (https://github.com/lunarway/shuttle.git) Go · 192 lines
66 var validationErrors []validationError
68 namedArgs, parsingErrors := validateArgFormat(args)
69 validationErrors = append(validationErrors, parsingErrors...)
70 if validateArgs {
94 }
96 func validateArgFormat(args []string) (map[string]string, []validationError) {
97 var validationErrors []validationError
98 namedArgs := map[string]string{}
format.go (git://github.com/simonz05/godis.git) Go · 95 lines
connection.go (git://github.com/simonz05/godis.git) Go · 115 lines
oci_create_linux.go (https://github.com/sylabs/singularity.git) Go · 81 lines
main.go (https://gitlab.com/re-pe/phpApps-Go) Go · 119 lines
36 }
38 func CheckFormat(args []interface{}) (format string, hasFormat bool) {
39 if len(args) < 1 { return }
40 switch arg := args[0].(type){
55 func Print(args ...interface{}) {
56 if format, hasFormat := CheckFormat(args); hasFormat {
57 fmt.Printf(format, args[1:]...)
58 } else {
63 func Log(args ...interface{}) {
64 if format, hasFormat := CheckFormat(args); hasFormat {
65 log.Printf(format, args[1:]...)
66 } else {
page.go (https://github.com/kjk/notionapi.git) Go · 294 lines
admin-rpc-server.go (https://github.com/pydio/cells.git) Go · 103 lines
funcsStrings.go (https://github.com/zix99/rare.git) Go · 211 lines
template.go (https://github.com/grailbio/reflow.git) Go · 58 lines
format.go (https://github.com/douyu/jupiter.git) Go · 25 lines
error.go (https://github.com/beyondblog/k8s-web-terminal.git) Go · 72 lines
20 // Format returns a formatted new error based on the arguments
21 func (e *Error) Format(args ...interface{}) error {
22 return fmt.Errorf(e.message, args...)
23 }
54 }
55 _, fn, line, _ := runtime.Caller(1)
56 errMsg := e.Format(args...).Error()
57 errMsg = "\nCaller was: " + fmt.Sprintf("%s:%d", fn, line)
58 panic(errMsg)