Skip to content

Commit 22eb31a

Browse files
committed
prettier autoformatting
1 parent 1cb5c9a commit 22eb31a

File tree

2 files changed

+51
-40
lines changed

2 files changed

+51
-40
lines changed

go/go-quiz-es.md

Lines changed: 37 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -806,28 +806,35 @@ func main() {
806806

807807
#### P53. Si tienes una struct llamada `Client` definida en el mismo archivo `.go`, ¿cómo exportas una variable con un valor por defecto para que sea accesible por otros paquetes?
808808

809-
- [ ] ````go
810-
let Default := new Client()
811-
```
809+
- [ ] `````go
810+
let Default := new Client()
811+
```
812812

813-
````
813+
````
814814

815-
- [ ] ````go
816-
public default = &Client()
817-
```
815+
`````
818816

819-
````
817+
- [ ] `````go
818+
public default = &Client()
819+
```
820820

821-
- [x] ````go
822-
var Default = &Client{}
823-
```
821+
````
824822

825-
````
823+
`````
826824

827-
- [ ] ````go
828-
export default := new Client{}
829-
```
830-
````
825+
- [x] `````go
826+
var Default = &Client{}
827+
```
828+
829+
````
830+
831+
`````
832+
833+
- [ ] `````go
834+
export default := new Client{}
835+
```
836+
````
837+
`````
831838

832839
#### P54. Este programa imprime `{Master Chief Spartan Protagonist Halo}`. ¿Cómo harías para que imprima `Master Chief - a Spartan - is the Protagonist of Halo`?
833840

@@ -989,18 +996,20 @@ fmt.Println (n)
989996

990997
- [ ] var \_ JSONConverter = nil. (\*Namespace)
991998
- [x] var \_ JSONConverter = (\*Namespace) (nil)
992-
- [ ] ````go
993-
type Namespace struct {
994-
implements JSONConverter
995-
}
996-
```
997-
````
998-
- [ ] ````go
999-
type Namespace struct {
1000-
JSONConverter
1001-
}
1002-
```
1003-
````
999+
- [ ] `````go
1000+
type Namespace struct {
1001+
implements JSONConverter
1002+
}
1003+
```
1004+
````
1005+
`````
1006+
- [ ] `````go
1007+
type Namespace struct {
1008+
JSONConverter
1009+
}
1010+
```
1011+
````
1012+
`````
10041013

10051014
> Esta sintaxis verifica que `*Namespace` satisface `JSONConverter`.
10061015

go/go-quiz-fr.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,18 +1079,20 @@ An easy way to remember this value is that it holds, when presented in this orde
10791079
10801080
- [ ] `var _ JSONConverter = nil.(*Namespace)`
10811081
- [x] `var _ JSONConverter = (*Namespace)(nil)`
1082-
- [ ] ````go
1083-
type Namespace struct {
1084-
implements JSONConverter
1085-
}
1086-
```
1087-
````
1088-
- [ ] ````go
1089-
type Namespace struct {
1090-
JSONConverter
1091-
}
1092-
```
1093-
````
1082+
- [ ] `````go
1083+
type Namespace struct {
1084+
implements JSONConverter
1085+
}
1086+
```
1087+
````
1088+
`````
1089+
- [ ] `````go
1090+
type Namespace struct {
1091+
JSONConverter
1092+
}
1093+
```
1094+
````
1095+
`````
10941096
10951097
> Cette syntaxe crée une variable `_` de type `JSONConverter` et lui assigne la valeur `(*Namespace)(nil)`. Cela vérifie que `Namespace` satisfait l’interface `JSONConverter` en s’assurant qu’elle peut être affectée à une variable de type `JSONConverter`.
10961098

0 commit comments

Comments
 (0)