OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 // | 4 // |
5 // Simple Hello program. Prints Hello, and an indication of which environment | 5 // Simple Hello program. Prints Hello, and an indication of which environment |
6 // it was run in. | 6 // it was run in. |
7 library helloSample; | 7 library helloSample; |
8 import 'package:os/os.dart'; | 8 import 'package:os/os.dart'; |
9 | 9 |
10 main() { | 10 main() { |
11 SystemInformation si = sys.info(); | 11 SystemInformation si = sys.info(); |
12 print('Hello from ${si.operatingSystemName} running on ${si.nodeName}.'); | 12 print('Hello from ${si.operatingSystemName} running on ${si.nodeName}.'); |
13 } | 13 } |
OLD | NEW |