A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

Golang reads CSV files and outputs - Pastebin.vip - paste tool since 2022!

Golang reads CSV files and outputs

From , 5 Years ago, written in Go, viewed 235 times.
URL https://pastebin.vip/view/78e8dffe
  1. package main
  2.  
  3. import (
  4.     "encoding/csv"
  5.     "fmt"
  6.     "io"
  7.     "os"
  8. )
  9.  
  10. func main() {
  11.     file, err := os.Open("names.txt")
  12.     if err != nil {
  13.         fmt.Println("Error:", err)
  14.         return
  15.     }
  16.     defer file.Close()
  17.     reader := csv.NewReader(file)
  18.     for {
  19.         record, err := reader.Read()
  20.         if err == io.EOF {
  21.             break
  22.         } else if err != nil {
  23.             fmt.Println("Error:", err)
  24.             return
  25.         }
  26.  
  27.         fmt.Println(record) // record has the type []string
  28.     }
  29. }
  30. //go/7682

Reply to "Golang reads CSV files and outputs"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website