godis /exp /format.go
74. * of strings which create a redis command.
75. * Returns a byte array */
76. func format(args ...interface{}) []byte {
77. buf := make([][]byte, len(args))
78.
75. * Returns a byte array */
76. func format(args ...interface{}) []byte {
77. buf := make([][]byte, len(args))
78.
1 matches | 96 lines | Go | GitHub
gopy /lib /string.go
48. }
49.
50. func (s *String) Format(args *Tuple) (*String, error) {
51. ret := C.PyString_Format(c(s), c(args))
52. if ret == nil {
49.
50. func (s *String) Format(args *Tuple) (*String, error) {
51. ret := C.PyString_Format(c(s), c(args))
52. if ret == nil {
1 matches | 57 lines | Go | GitHub
go /bettererrors /bettererrors.go
18. // Function Format runs fmt.Sprintf using the format string specified during creation and the specified
19. // arguments, then returns the created error.
20. func (et ErrorTemplate) Format(args ...interface{}) (err error) {
21. return errors.New(fmt.Sprintf(string(et), args...))
22. }
19. // arguments, then returns the created error.
20. func (et ErrorTemplate) Format(args ...interface{}) (err error) {
21. return errors.New(fmt.Sprintf(string(et), args...))
22. }
1 matches | 23 lines | Go | GitHub
exp-godis /format.go
74. * of strings which create a redis command.
75. * Returns a byte array */
76. func format(args ...interface{}) []byte {
77. buf := make([][]byte, len(args))
78.
75. * Returns a byte array */
76. func format(args ...interface{}) []byte {
77. buf := make([][]byte, len(args))
78.
1 matches | 96 lines | Go | GitHub

