How to "import static" like in Java? (No need to put package qualifier to access keywords)

No 1 Semua (balik urutan) |

yuku@gofaq : 2009-11-25 09:22:10 UTC+0000
How to "import static" like in Java? (No need to put package qualifier to access keywords)

Use dot as the alias of the import.

For example:

import . "fmt"

Now you can access Printf without typing fmt.Printf.

 

Kau akan ngepos secara anonim! Boleh2 aja sih, bahkan tulis nama dan sembarang paswod pun boleh. Tapi kalo mau daftar, klik daftar

Nama Pwd gp jsp dua+satu= +img +coret

 

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|

|