mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-23 14:14:05 +00:00
Accept suggestion: replace "—ones" with " that"
Co-Authored-By: Lasse Martin Jakobsen <lmj@corti.ai>
This commit is contained in:
parent
f159685f10
commit
0d8bea3073
|
@ -1222,7 +1222,7 @@ As mentioned in a previous section, Go determines whether a concrete type implem
|
||||||
type EmptyInterface interface {}
|
type EmptyInterface interface {}
|
||||||
```
|
```
|
||||||
|
|
||||||
The above is equivalent to the built-in type `interface{}`. A natural consequence of this is that we can write generic functions—ones that accept any type as arguments. This is extremely useful for certain kinds of functions, such as print helpers. Interestingly, this is actually what makes it possible to pass in any type to the `Println` function from the `fmt` package:
|
The above is equivalent to the built-in type `interface{}`. A natural consequence of this is that we can write generic functions that accept any type as arguments. This is extremely useful for certain kinds of functions, such as print helpers. Interestingly, this is actually what makes it possible to pass in any type to the `Println` function from the `fmt` package:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func Println(v ...interface{}) {
|
func Println(v ...interface{}) {
|
||||||
|
|
Loading…
Reference in a new issue