Skip to content

Commit e4004be

Browse files
committed
Smaller headings in README.
1 parent 4163536 commit e4004be

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
GopherJS - A transpiler from Go to JavaScript
2-
=============================================
2+
---------------------------------------------
33

4-
What is supported?
5-
------------------
4+
### What is supported?
65
GopherJS is able to turn itself (and all packages it uses) into pure JavaScript code that runs in all major browsers. This suggests a quite good coverage of Go's specification. However, there are some known exceptions listed below and some unknown exceptions that I would love to hear about when you find some.
76

8-
Not yet supported
9-
-----------------
7+
### Not yet supported
108
Those features are not implemented yet, but on the roadmap:
119

1210
- implicit panics (division by zero, etc.)
@@ -15,13 +13,11 @@ Those features are not implemented yet, but on the roadmap:
1513
- goroutines, channels, select
1614
- goto
1715

18-
Derivations from Go specification
19-
---------------------------------
16+
### Derivations from Go specification
2017
Some tradeoffs have to be made in order to avoid huge performance impacts. Please get in contact if those are deal breakers for you.
2118

2219
- int32, uint32, int64 and uint64 have emulated overflow, all other integer types do not
2320
- calls on nil cause a panic except for slice types
2421

25-
Interface to external JavaScript
26-
--------------------------------
22+
### Interface to external JavaScript
2723
A function's body can be written in JavaScript by putting the code in a string constant with the name `js_[function name]` for package functions and `js_[type name]_[method name]` for methods. In that case, GopherJS disregards the Go function body and instead generates `function(...) { [constant's value] }`. This allows functions to have a Go signature that the type checker can use while being able to call external JavaScript functions.

0 commit comments

Comments
 (0)